mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Electrostatic Pummeler AI: don't overpump when using it defensively.
This commit is contained in:
@@ -301,6 +301,13 @@ public class SpecialCardAi {
|
|||||||
return false;
|
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;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user