Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -19,7 +19,6 @@ package com.l2jmobius.gameserver.model.conditions;
import java.util.List;
import com.l2jmobius.gameserver.model.actor.L2Character;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.L2Item;
import com.l2jmobius.gameserver.model.skills.Skill;
@@ -42,10 +41,6 @@ public class ConditionTargetClassIdRestriction extends Condition
@Override
public boolean testImpl(L2Character effector, L2Character effected, Skill skill, L2Item item)
{
if (!(effected instanceof L2PcInstance))
{
return false;
}
return (_classIds.contains((effected.getActingPlayer()).getClassId().getId()));
return effected.isPlayer() && _classIds.contains((effected.getActingPlayer()).getClassId().getId());
}
}