- Electrostatic Pummeler AI: don't overpump when using it defensively.

This commit is contained in:
Agetian
2017-08-29 16:56:42 +00:00
parent 84e73f6f52
commit b41e2b6f51

View File

@@ -301,6 +301,13 @@ public class SpecialCardAi {
return false;
}
}
if (combat.isBlocking(source)) {
if (source.getNetPower() > Aggregates.sum(combat.getAttackersBlockedBy(source), CardPredicates.Accessors.fnGetNetToughness)
&& source.getNetToughness() > Aggregates.sum(combat.getAttackersBlockedBy(source), CardPredicates.Accessors.fnGetNetPower)) {
// Already enough to kill the blockers and survive, don't overpump
return false;
}
}
}
return true;