mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- NPE prevention in AiAttackController.
This commit is contained in:
@@ -93,6 +93,9 @@ public class AiAttackController {
|
||||
}
|
||||
};
|
||||
for (Card c : CardLists.filter(this.defendingOpponent.getCardsIn(ZoneType.Battlefield), canAnimate)) {
|
||||
if (c.isToken() && !c.isCopiedToken()) {
|
||||
continue;
|
||||
}
|
||||
for (SpellAbility sa : c.getSpellAbilities()) {
|
||||
if (sa.getApi() == ApiType.Animate) {
|
||||
if (ComputerUtilCost.canPayCost(sa, this.defendingOpponent)) {
|
||||
|
||||
Reference in New Issue
Block a user