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