- A little tweak to the previous commit.

This commit is contained in:
Agetian
2017-09-01 08:49:30 +00:00
parent 65322925a4
commit 2a623957c3

View File

@@ -213,8 +213,9 @@ public abstract class PumpAiBase extends SpellAbilityAi {
// Use defensively to destroy the opposing Flying creature when possible, or to block with an indestructible // Use defensively to destroy the opposing Flying creature when possible, or to block with an indestructible
// creature buffed with Flying // creature buffed with Flying
for (Card c : CardLists.filter(combat.getAttackers(), CardPredicates.hasKeyword("Flying"))) { for (Card c : CardLists.filter(combat.getAttackers(), CardPredicates.hasKeyword("Flying"))) {
if (card.getNetPower() >= c.getNetToughness() && card.getNetToughness() > c.getNetPower() if (!ComputerUtilCombat.attackerCantBeDestroyedInCombat(c.getController(), c)
|| ComputerUtilCombat.attackerCantBeDestroyedInCombat(ai, card)) { && (card.getNetPower() >= c.getNetToughness() && card.getNetToughness() > c.getNetPower()
|| ComputerUtilCombat.attackerCantBeDestroyedInCombat(ai, card))) {
return true; return true;
} }
} }