Skip to content
Snippets Groups Projects
Commit 3b127d05 authored by HorridoJoho's avatar HorridoJoho Committed by Christian
Browse files

Cleanup nullpointer fix.

This fixed the null pointer in condition checks with items which execute
a skill with TargetType SELF (effected was null).
parent a80d48dd
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,6 @@ public class ItemSkillsTemplate implements IItemHandler {
hasConsumeSkill = true;
}
//if (!itemSkill.checkCondition(playable, playable.getTarget(), false)) {
if (!itemSkill.checkCondition(playable, itemSkill.getTargetType().getTarget(itemSkill, playable, playable.getTarget()), false)) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment