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;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -77,8 +78,8 @@ public class DrawCardControllerEffect extends OneShotEffect<DrawCardControllerEf
|
|||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
boolean oneCard = (amount instanceof StaticValue && amount.calculate(null, null) == 1)
|
||||
|| amount instanceof PermanentsOnBattlefieldCount || amount.toString() == "1";
|
||||
sb.append("draw ").append(oneCard ? "a" : amount).append(" card");
|
||||
|| amount instanceof PermanentsOnBattlefieldCount || amount.toString().equals("1");
|
||||
sb.append("draw ").append(oneCard ? "a" : CardUtil.numberToText(amount.toString())).append(" card");
|
||||
if (!oneCard) {
|
||||
sb.append("s");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue