mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Write life loss amount as figure instead of text for rule text.
This commit is contained in:
parent
c91b276348
commit
8678da6051
1 changed files with 1 additions and 3 deletions
|
@ -31,12 +31,10 @@ package mage.abilities.effects.common;
|
|||
import mage.Constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -78,7 +76,7 @@ public class LoseLifeSourceEffect extends OneShotEffect<LoseLifeSourceEffect> {
|
|||
|
||||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("You lose ").append(CardUtil.numberToText(amount.toString())).append(" life");
|
||||
sb.append("You lose ").append(amount.toString()).append(" life");
|
||||
String message = amount.getMessage();
|
||||
if (message.length() > 0) {
|
||||
sb.append(" for each ");
|
||||
|
|
Loading…
Reference in a new issue