mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- A little tweak to the previous commit.
This commit is contained in:
@@ -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
|
||||
// creature buffed with Flying
|
||||
for (Card c : CardLists.filter(combat.getAttackers(), CardPredicates.hasKeyword("Flying"))) {
|
||||
if (card.getNetPower() >= c.getNetToughness() && card.getNetToughness() > c.getNetPower()
|
||||
|| ComputerUtilCombat.attackerCantBeDestroyedInCombat(ai, card)) {
|
||||
if (!ComputerUtilCombat.attackerCantBeDestroyedInCombat(c.getController(), c)
|
||||
&& (card.getNetPower() >= c.getNetToughness() && card.getNetToughness() > c.getNetPower()
|
||||
|| ComputerUtilCombat.attackerCantBeDestroyedInCombat(ai, card))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user