From 495ba5f393afc0b2ca93ed0e8bd1057fa6fef429 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 29 Jan 2021 12:29:28 +0000 Subject: [PATCH] Skill id comparison is faster than testing if skill exists. --- .../dist/game/data/scripts/ai/others/TeleportWithEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/ai/others/TeleportWithEffect.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/ai/others/TeleportWithEffect.java index a34fafdf3e..fd5cb136bf 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/ai/others/TeleportWithEffect.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/ai/others/TeleportWithEffect.java @@ -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; }