Code improvements.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user