- Some more tweaks to Life Drain AI.

This commit is contained in:
Agetian
2017-01-27 04:38:56 +00:00
parent f9f7bd1366
commit cdbb6b9e6f

View File

@@ -728,8 +728,9 @@ public class DamageDealAi extends DamageAiBase {
boolean canDie = !(c.hasKeyword("Indestructible") || ComputerUtil.canRegenerate(c.getController(), c));
// Currently will target creatures with toughness 3+ (or power 5+)
// and only if the creature can actually die
if (canDie && toughness <= dmg && (toughness >= 3 || power >= 5)) {
// and only if the creature can actually die, do not "underdrain"
// unless the creature has high power
if (canDie && toughness <= dmg && ((toughness == dmg && toughness >= 3) || power >= 5)) {
tgtCreature = c;
break;
}