From 3def3230eed94a75b74c52f5143778a73bac90e2 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 16 Jun 2013 09:22:44 +0200 Subject: [PATCH] [minor] rule text formatting. --- .../abilities/costs/common/RemoveCountersSourceCost.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/costs/common/RemoveCountersSourceCost.java b/Mage/src/mage/abilities/costs/common/RemoveCountersSourceCost.java index 11a53e7731..c3d8603341 100644 --- a/Mage/src/mage/abilities/costs/common/RemoveCountersSourceCost.java +++ b/Mage/src/mage/abilities/costs/common/RemoveCountersSourceCost.java @@ -34,6 +34,7 @@ import mage.abilities.costs.CostImpl; import mage.counters.Counter; import mage.game.Game; import mage.game.permanent.Permanent; +import mage.util.CardUtil; /** * @@ -47,8 +48,10 @@ public class RemoveCountersSourceCost extends CostImpl public RemoveCountersSourceCost(Counter counter) { this.amount = counter.getCount(); this.name = counter.getName(); - this.text = "Remove " + (amount == 1 ? "a" : amount) + " " + name + " counter" - + (amount != 1 ? "s" : "") + " from {this}"; + this.text = new StringBuilder("Remove ").append((amount == 1 ? "a" : CardUtil.numberToText(amount))) + .append(" ").append(name).append(" counter").append((amount != 1 ? "s" : "")) + .append(" from {this}").toString(); + } public RemoveCountersSourceCost(RemoveCountersSourceCost cost) {