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
|
// 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user