forked from External/mage
Text fixes
This commit is contained in:
parent
7b9243f640
commit
c7994cb3ac
8 changed files with 10 additions and 8 deletions
|
|
@ -107,6 +107,7 @@ public class CardsInHandCondition implements Condition {
|
|||
if (count > 0) {
|
||||
sb.append("exactly ");
|
||||
sb.append(CardUtil.numberToText(count));
|
||||
sb.append(" ");
|
||||
} else {
|
||||
sb.append("no ");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import mage.abilities.condition.Condition;
|
|||
import mage.abilities.effects.Effects;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.game.Game;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* Adds condition to {@link OneShotEffect}. Acts as decorator.
|
||||
|
|
@ -78,9 +79,9 @@ public class ConditionalOneShotEffect extends OneShotEffect {
|
|||
return staticText;
|
||||
}
|
||||
if (otherwiseEffects.isEmpty()) {
|
||||
return "if " + condition.toString() + ", " + effects.getText(mode);
|
||||
return "if " + condition.toString() + ", " + CardUtil.getTextWithFirstCharLowerCase(effects.getText(mode));
|
||||
}
|
||||
return effects.getText(mode) + ". If " + condition.toString() + ", " + otherwiseEffects.getText(mode);
|
||||
return effects.getText(mode) + ". If " + condition.toString() + ", " + CardUtil.getTextWithFirstCharLowerCase(otherwiseEffects.getText(mode));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -113,6 +113,6 @@ public class BecomesColorSourceEffect extends ContinuousEffectImpl {
|
|||
return staticText;
|
||||
}
|
||||
return "{this} becomes " + (setColor == null ? "the color of your choice" : setColor.getDescription())
|
||||
+ (' ' + duration.toString()).trim();
|
||||
+ (duration.toString().isEmpty() ? "" : " " + duration.toString());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue