From b3d4fcf3d3ad7823677505cd3d297af953cfcc54 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 27 Sep 2017 00:09:29 +0000 Subject: [PATCH] Dead monsters should not target. Contributed by Liamxroy. --- .../com/l2jmobius/gameserver/model/actor/L2Attackable.java | 5 +++++ .../com/l2jmobius/gameserver/model/actor/L2Attackable.java | 5 +++++ .../com/l2jmobius/gameserver/model/actor/L2Attackable.java | 5 +++++ .../com/l2jmobius/gameserver/model/actor/L2Attackable.java | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java index 524b3cdd2f..68cdaf4061 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java @@ -1747,6 +1747,11 @@ public class L2Attackable extends L2Npc @Override public void setTarget(L2Object object) { + if (isDead()) + { + return; + } + if (object == null) { final L2Object target = getTarget(); diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java index c6db05b905..3464bde3d7 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java @@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc @Override public void setTarget(L2Object object) { + if (isDead()) + { + return; + } + if (object == null) { final L2Object target = getTarget(); diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java index c6db05b905..3464bde3d7 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java @@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc @Override public void setTarget(L2Object object) { + if (isDead()) + { + return; + } + if (object == null) { final L2Object target = getTarget(); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java index c6db05b905..3464bde3d7 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Attackable.java @@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc @Override public void setTarget(L2Object object) { + if (isDead()) + { + return; + } + if (object == null) { final L2Object target = getTarget();