Replaced instanceof L2NpcInstance with isNpc method.

This commit is contained in:
MobiusDev
2018-07-02 01:27:50 +00:00
parent b33537aa50
commit 5f62a4c740
37 changed files with 37 additions and 137 deletions

View File

@@ -32,7 +32,7 @@ public class SkillList implements IBypassHandler
@Override
public boolean useBypass(String command, L2PcInstance activeChar, L2Character target)
{
if (!(target instanceof L2NpcInstance))
if ((target == null) || !target.isNpc())
{
return false;
}