mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Some more tweaks to Life Drain AI.
This commit is contained in:
@@ -728,8 +728,9 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
boolean canDie = !(c.hasKeyword("Indestructible") || ComputerUtil.canRegenerate(c.getController(), c));
|
boolean canDie = !(c.hasKeyword("Indestructible") || ComputerUtil.canRegenerate(c.getController(), c));
|
||||||
|
|
||||||
// Currently will target creatures with toughness 3+ (or power 5+)
|
// Currently will target creatures with toughness 3+ (or power 5+)
|
||||||
// and only if the creature can actually die
|
// and only if the creature can actually die, do not "underdrain"
|
||||||
if (canDie && toughness <= dmg && (toughness >= 3 || power >= 5)) {
|
// unless the creature has high power
|
||||||
|
if (canDie && toughness <= dmg && ((toughness == dmg && toughness >= 3) || power >= 5)) {
|
||||||
tgtCreature = c;
|
tgtCreature = c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user