forked from External/mage
Changed some classes to use number as text in rule text instead of digits.
This commit is contained in:
parent
ebe3c92b9d
commit
fd0cbb6551
7 changed files with 19 additions and 10 deletions
|
|
@ -36,6 +36,7 @@ import mage.abilities.dynamicvalue.common.StaticValue;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -82,7 +83,7 @@ public class DrawCardTargetEffect extends OneShotEffect<DrawCardTargetEffect> {
|
|||
} else {
|
||||
sb.append("that player");
|
||||
}
|
||||
sb.append(" draws ").append(amount).append(" card");
|
||||
sb.append(" draws ").append(CardUtil.numberToText(amount.toString())).append(" card");
|
||||
try {
|
||||
if (Integer.parseInt(amount.toString()) > 1) {
|
||||
sb.append("s");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue