Life Cubic should not try to heal dead targets.

Contributed by Iris.
This commit is contained in:
MobiusDevelopment 2021-05-03 12:57:40 +00:00
parent 8d263dc0b4
commit cec6c280b2
19 changed files with 19 additions and 19 deletions

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{