Fix text for CantBeBlockedByMoreThanOneAllEffect and BecomesCreatureAllEffect

This commit is contained in:
Quercitron 2014-01-17 02:33:38 +04:00
parent 0452a333a4
commit 99ef7b7e02
2 changed files with 5 additions and 2 deletions

View file

@ -61,7 +61,8 @@ public class CantBeBlockedByMoreThanOneAllEffect extends ContinuousEffectImpl<Ca
super(duration, Outcome.Benefit);
this.amount = amount;
this.filter = filter;
staticText = new StringBuilder("Each ").append(filter.getMessage()).append(" can't be blocked by more than ").append(CardUtil.numberToText(amount)).append(" creature").toString();
staticText = new StringBuilder("Each ").append(filter.getMessage()).append(" can't be blocked by more than ")
.append(CardUtil.numberToText(amount)).append(" creature").append(amount > 1 ? "s" : "").toString();
}
public CantBeBlockedByMoreThanOneAllEffect(final CantBeBlockedByMoreThanOneAllEffect effect) {

View file

@ -134,7 +134,9 @@ public class BecomesCreatureAllEffect extends ContinuousEffectImpl<BecomesCreatu
@Override
public String getText(Mode mode) {
StringBuilder sb = new StringBuilder();
sb.append(duration.toString()).append(", ");
if (duration.toString() != "") {
sb.append(duration.toString()).append(", ");
}
sb.append(filter.getMessage());
sb.append(" become a ").append(token.getDescription());
if (type != null && type.length() > 0) {