mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
fixed test failure
This commit is contained in:
parent
bfc0b2094a
commit
4304b4a66a
2 changed files with 6 additions and 2 deletions
|
|
@ -26,11 +26,15 @@ public class RemoveCountersSourceCost extends CostImpl {
|
|||
private final int amount;
|
||||
private final String name;
|
||||
|
||||
public RemoveCountersSourceCost() {
|
||||
this((Counter) null);
|
||||
}
|
||||
|
||||
public RemoveCountersSourceCost(Counter counter) {
|
||||
this.amount = counter != null ? counter.getCount() : 1;
|
||||
this.name = counter != null ? counter.getName() : "";
|
||||
this.text = new StringBuilder("remove ")
|
||||
.append((amount == 1 ? CounterType.findArticle(counter.getName()) : CardUtil.numberToText(amount)))
|
||||
.append((amount == 1 ? CounterType.findArticle(name) : CardUtil.numberToText(amount)))
|
||||
.append(name.isEmpty() ? "" : (' ' + name))
|
||||
.append(" counter")
|
||||
.append((amount != 1 ? "s" : ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue