[DMU] various text fixes

This commit is contained in:
Evan Kranzler 2022-09-14 18:29:34 -04:00
parent d165072ac9
commit a31644789c
19 changed files with 35 additions and 37 deletions

View file

@ -1,16 +1,16 @@
package mage.abilities.effects.common.counter;
import mage.constants.Outcome;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.counters.CounterType;
import mage.game.Game;
import mage.players.Player;
import mage.util.CardUtil;
/**
*
* @author North
*/
public class AddPoisonCounterTargetEffect extends OneShotEffect {
@ -48,9 +48,10 @@ public class AddPoisonCounterTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
if(staticText != null && !staticText.isEmpty()) {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
return "target " + mode.getTargets().get(0).getTargetName() + " gets " + Integer.toString(amount) + " poison counter(s).";
return "target " + mode.getTargets().get(0).getTargetName() + " gets "
+ CardUtil.numberToText(amount, "a") + " poison counter" + (amount > 1 ? "s" : "") + '.';
}
}