Skill id comparison is faster than testing if skill exists.

This commit is contained in:
MobiusDevelopment 2021-01-29 12:29:28 +00:00
parent ed93873609
commit 495ba5f393

View File

@ -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;
}