mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
fixed a test failure
This commit is contained in:
parent
3a4b0159a9
commit
b8a95765fc
1 changed files with 3 additions and 2 deletions
|
@ -129,9 +129,10 @@ public class RemoveCounterCost extends CostImpl {
|
|||
|
||||
private String setText() {
|
||||
StringBuilder sb = new StringBuilder("Remove ");
|
||||
sb.append(CardUtil.numberToText(countersToRemove, counterTypeToRemove.getArticle())).append(' ');
|
||||
if (counterTypeToRemove != null) {
|
||||
sb.append(counterTypeToRemove.getName());
|
||||
sb.append(CardUtil.numberToText(countersToRemove, counterTypeToRemove.getArticle())).append(' ').append(counterTypeToRemove.getName());
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(countersToRemove, "a"));
|
||||
}
|
||||
sb.append(countersToRemove == 1 ? " counter from " : " counters from ").append(target.getMaxNumberOfTargets() == 1 ? "a " : "").append(target.getTargetName());
|
||||
return sb.toString();
|
||||
|
|
Loading…
Reference in a new issue