diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) { diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index cc47d39fdc..d8866699a8 100644 --- a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -184,7 +184,7 @@ public class CubicInstance } final Creature target = stream.sorted(Comparator.comparingInt(Creature::getCurrentHpPercent)).findFirst().orElse(null); - if (target != null) + if ((target != null) && (!target.isDead())) // Life Cubic should not try to heal dead targets. { if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp())) {