mirror of
https://github.com/correl/mage.git
synced 2025-03-16 01:06:34 -09: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.Constants.Outcome;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.dynamicvalue.DynamicValue;
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
|
||||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.util.CardUtil;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -78,7 +76,7 @@ public class LoseLifeSourceEffect extends OneShotEffect<LoseLifeSourceEffect> {
|
||||||
|
|
||||||
private void setText() {
|
private void setText() {
|
||||||
StringBuilder sb = new StringBuilder();
|
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();
|
String message = amount.getMessage();
|
||||||
if (message.length() > 0) {
|
if (message.length() > 0) {
|
||||||
sb.append(" for each ");
|
sb.append(" for each ");
|
||||||
|
|
Loading…
Add table
Reference in a new issue