Skill id comparison is faster than testing if skill exists.
This commit is contained in:
parent
ed93873609
commit
495ba5f393
@ -40,7 +40,7 @@ public class TeleportWithEffect extends AbstractNpcAI
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnCreatureSkillFinishCast(OnCreatureSkillFinishCast event)
|
||||
{
|
||||
if (event.getSkill() != CommonSkill.TELEPORT.getSkill())
|
||||
if (event.getSkill().getId() != CommonSkill.TELEPORT.getId())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user