Fix some string builder issues

This commit is contained in:
PurpleCrowbar 2023-02-13 13:10:10 +00:00
parent 7172027cde
commit c0dfa160b1
2 changed files with 1 additions and 4 deletions

View file

@ -87,7 +87,7 @@ public class ReturnFromGraveyardToBattlefieldTargetEffect extends OneShotEffect
if (target.getMaxNumberOfTargets() == Integer.MAX_VALUE if (target.getMaxNumberOfTargets() == Integer.MAX_VALUE
&& target.getMinNumberOfTargets() == 0) { && target.getMinNumberOfTargets() == 0) {
sb.append("any number of "); sb.append("any number of ");
} else if (target.getMaxNumberOfTargets() > 1) { } else {
if (target.getMaxNumberOfTargets() != target.getNumberOfTargets()) { if (target.getMaxNumberOfTargets() != target.getNumberOfTargets()) {
sb.append("up to "); sb.append("up to ");
} }

View file

@ -56,9 +56,6 @@ public class CantBlockTargetEffect extends RestrictionEffect {
sb.append(CardUtil.numberToText(target.getMaxNumberOfTargets())).append(' '); sb.append(CardUtil.numberToText(target.getMaxNumberOfTargets())).append(' ');
} }
sb.append("target ").append(mode.getTargets().get(0).getTargetName()); sb.append("target ").append(mode.getTargets().get(0).getTargetName());
if (target.getMaxNumberOfTargets() > 1) {
sb.append('s');
}
sb.append(" can't block"); sb.append(" can't block");
if (this.duration == Duration.EndOfTurn) { if (this.duration == Duration.EndOfTurn) {