Text fixes

This commit is contained in:
xenohedron 2023-05-20 18:50:39 -04:00
parent 7b9243f640
commit c7994cb3ac
8 changed files with 10 additions and 8 deletions

View file

@ -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 ");
}

View file

@ -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

View file

@ -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());
}
}