From 91905ca5926f1b83a1359f58a2226e6d130980bc Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 27 Sep 2017 13:02:11 +0000 Subject: [PATCH] Prevent adding effects on dead creatures. --- .../java/com/l2jmobius/gameserver/model/CharEffectList.java | 6 ++++++ .../java/com/l2jmobius/gameserver/model/CharEffectList.java | 6 ++++++ .../java/com/l2jmobius/gameserver/model/CharEffectList.java | 6 ++++++ .../java/com/l2jmobius/gameserver/model/CharEffectList.java | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/CharEffectList.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/CharEffectList.java index 9e45f81a1a..794ddacf72 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/CharEffectList.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/CharEffectList.java @@ -735,6 +735,12 @@ public final class CharEffectList return; } + // Prevent adding and initializing buffs/effects on dead creatures. + if (info.getEffected().isDead()) + { + return; + } + if (info.getSkill() == null) { // Only options are without skills. diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/CharEffectList.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/CharEffectList.java index 9e45f81a1a..794ddacf72 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/CharEffectList.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/CharEffectList.java @@ -735,6 +735,12 @@ public final class CharEffectList return; } + // Prevent adding and initializing buffs/effects on dead creatures. + if (info.getEffected().isDead()) + { + return; + } + if (info.getSkill() == null) { // Only options are without skills. diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/CharEffectList.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/CharEffectList.java index 9e45f81a1a..794ddacf72 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/CharEffectList.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/CharEffectList.java @@ -735,6 +735,12 @@ public final class CharEffectList return; } + // Prevent adding and initializing buffs/effects on dead creatures. + if (info.getEffected().isDead()) + { + return; + } + if (info.getSkill() == null) { // Only options are without skills. diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/CharEffectList.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/CharEffectList.java index 9e45f81a1a..794ddacf72 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/CharEffectList.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/CharEffectList.java @@ -735,6 +735,12 @@ public final class CharEffectList return; } + // Prevent adding and initializing buffs/effects on dead creatures. + if (info.getEffected().isDead()) + { + return; + } + if (info.getSkill() == null) { // Only options are without skills.