From e05d0a1a14e46eb30eb97db6faaf3c1ade78f784 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 8 May 2018 14:09:19 +0000 Subject: [PATCH] Reset monster casting back to false. Contributed by Sahar. --- .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + .../gameserver/model/actor/instance/L2MonsterInstance.java | 2 ++ .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + .../gameserver/model/actor/instance/L2MonsterInstance.java | 1 + 7 files changed, 8 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed); diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed); diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed); diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed); diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index f1abd8c1e7..84a018e26d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -241,6 +241,8 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + setIsCastingNow(false); + setIsCastingSimultaneouslyNow(false); return; } super.doCast(skill, target, targets); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed); diff --git a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java index 0985488e6d..35cb265650 100644 --- a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java +++ b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2MonsterInstance.java @@ -247,6 +247,7 @@ public class L2MonsterInstance extends L2Attackable // Might need some exceptions here, but it will prevent the monster buffing player bug. if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer()) { + abortCast(); return; } super.doCast(skill, item, ctrlPressed, shiftPressed);