mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[minor] rule text formatting.
This commit is contained in:
parent
df2fd3f68e
commit
3def3230ee
1 changed files with 5 additions and 2 deletions
|
@ -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<RemoveCountersSourceCost>
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue