Life Cubic should not try to heal dead targets.
Contributed by Iris.
This commit is contained in:
parent
8d263dc0b4
commit
cec6c280b2
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
@ -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()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user