From 9ca981955c27b6ca5bdb749e82d89854d85c22bf Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Fri, 16 Apr 2010 03:36:31 +0000 Subject: [PATCH] fixed missing mana costs --- Mage/src/mage/abilities/keyword/KickerAbility.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/keyword/KickerAbility.java b/Mage/src/mage/abilities/keyword/KickerAbility.java index d0d6c727f5..c36183dd46 100644 --- a/Mage/src/mage/abilities/keyword/KickerAbility.java +++ b/Mage/src/mage/abilities/keyword/KickerAbility.java @@ -68,7 +68,19 @@ public class KickerAbility extends StaticAbility { @Override public String getRule() { - return "Kicker " + costs.getText() + ":" + effects.getText() + (replaces?" instead":""); + StringBuilder sb = new StringBuilder(); + sb.append("Kicker"); + if (manaCosts.size() > 0) { + sb.append(manaCosts.getText()); + if (costs.size() > 0) + sb.append(","); + } + if (costs.size() > 0) + sb.append(costs.getText()); + sb.append(":").append(effects.getText()); + if (replaces) + sb.append(" instead"); + return sb.toString(); } }