Fixed Skill checkCondition NPE.

This commit is contained in:
MobiusDev
2018-07-27 13:30:54 +00:00
parent c586c14e8d
commit a1361bbb8b

View File

@@ -1018,7 +1018,7 @@ public final class Skill implements IIdentifiable
return true; return true;
} }
final L2Character target = object.isCharacter() ? (L2Character) object : null; final L2Character target = object instanceof L2Character ? (L2Character) object : null;
for (Condition cond : preCondition) for (Condition cond : preCondition)
{ {
if (!cond.test(activeChar, target, this)) if (!cond.test(activeChar, target, this))