From f0c164693e5470d17b1765c62ccfceb8dcbc7a6a Mon Sep 17 00:00:00 2001 From: Sloth Date: Sat, 1 Sep 2012 18:12:19 +0000 Subject: [PATCH] - Fixed costChanges not applying to AI spells with a cost of 0. --- src/main/java/forge/card/cost/CostPayment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/forge/card/cost/CostPayment.java b/src/main/java/forge/card/cost/CostPayment.java index 82c8a4db10f..9ec89c808ad 100644 --- a/src/main/java/forge/card/cost/CostPayment.java +++ b/src/main/java/forge/card/cost/CostPayment.java @@ -292,6 +292,10 @@ public class CostPayment { final Card source = this.ability.getSourceCard(); final ArrayList parts = this.cost.getCostParts(); + if (this.getCost().getCostMana() == null) { + parts.add(new CostMana("0", 1)); + } + // Set all of the decisions before attempting to pay anything for (final CostPart part : parts) { if (!part.decideAIPayment(this.ability, source, this)) {