diff --git a/forge-ai/src/main/java/forge/ai/ComputerUtil.java b/forge-ai/src/main/java/forge/ai/ComputerUtil.java index 1bb38cdb467..bdf367c74e1 100644 --- a/forge-ai/src/main/java/forge/ai/ComputerUtil.java +++ b/forge-ai/src/main/java/forge/ai/ComputerUtil.java @@ -2880,7 +2880,7 @@ public class ComputerUtil { AiController aic = ((PlayerControllerAi) ai.getController()).getAi(); Card targetSpellCard = null; for (Card c : options) { - if (withoutPayingManaCost && c.getManaCost() != null && c.getManaCost().getShardCount(ManaCostShard.X) > 0) { + if (withoutPayingManaCost && c.getManaCost() != null && c.getManaCost().countX() > 0) { // The AI will otherwise cheat with the mana payment, announcing X > 0 for spells like Heat Ray when replaying them // without paying their mana cost. continue; diff --git a/forge-core/src/main/java/forge/card/mana/ManaCost.java b/forge-core/src/main/java/forge/card/mana/ManaCost.java index 51611a48d18..34a0387b61b 100644 --- a/forge-core/src/main/java/forge/card/mana/ManaCost.java +++ b/forge-core/src/main/java/forge/card/mana/ManaCost.java @@ -345,13 +345,7 @@ public final class ManaCost implements Comparable, Iterable