From 7792b3abde819b11fb0efb3e79a8d10fa3d20b25 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 30 Sep 2019 00:47:24 +0000 Subject: [PATCH] Fixed players getting stuck in casting intention. Contributed by Sahar. --- .../gameserver/model/actor/instance/PlayerInstance.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 6faa5f07b1..88e3be0203 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -8553,6 +8553,12 @@ public class PlayerInstance extends Playable setQueuedSkill(null, false, false); } + if (!checkUseMagicConditions(skill, forceUse, dontMove)) + { + setIsCastingNow(false); + return false; + } + // Check if the target is correct and Notify the AI with AI_INTENTION_CAST and target WorldObject target = null; switch (skill.getTargetType())