Skip to content

Commit

Permalink
CostRemoveCounter.toString improve (Card-Forge#4094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Northmoc committed Dec 5, 2023
1 parent 713e665 commit 96dc7f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import forge.game.player.Player;
import forge.game.spellability.SpellAbility;
import forge.game.zone.ZoneType;
import forge.util.Lang;

/**
* The Class CostRemoveCounter.
Expand Down Expand Up @@ -113,8 +114,7 @@ public final String toString() {
} else if (this.getAmount().equals("All")) {
sb.append("all ").append(this.counter.getName().toLowerCase()).append(" counters");
} else {
final Integer i = this.convertAmount();
sb.append(Cost.convertAmountTypeToWords(i, this.getAmount(),
sb.append(Lang.nounWithNumeralExceptOne(this.getAmount(),
this.counter.getName().toLowerCase() + " counter"));
}

Expand Down

0 comments on commit 96dc7f0

Please sign in to comment.