From c0dfa160b186ee52ce945df73fd0d5a1e4a8f274 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com> Date: Mon, 13 Feb 2023 13:10:10 +0000 Subject: [PATCH] Fix some string builder issues --- .../common/ReturnFromGraveyardToBattlefieldTargetEffect.java | 2 +- .../abilities/effects/common/combat/CantBlockTargetEffect.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/ReturnFromGraveyardToBattlefieldTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/ReturnFromGraveyardToBattlefieldTargetEffect.java index 86039a16b7..74fe7ddcd0 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/ReturnFromGraveyardToBattlefieldTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/ReturnFromGraveyardToBattlefieldTargetEffect.java @@ -87,7 +87,7 @@ public class ReturnFromGraveyardToBattlefieldTargetEffect extends OneShotEffect if (target.getMaxNumberOfTargets() == Integer.MAX_VALUE && target.getMinNumberOfTargets() == 0) { sb.append("any number of "); - } else if (target.getMaxNumberOfTargets() > 1) { + } else { if (target.getMaxNumberOfTargets() != target.getNumberOfTargets()) { sb.append("up to "); } diff --git a/Mage/src/main/java/mage/abilities/effects/common/combat/CantBlockTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/combat/CantBlockTargetEffect.java index 9a97d0cb11..690722db88 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/combat/CantBlockTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/combat/CantBlockTargetEffect.java @@ -56,9 +56,6 @@ public class CantBlockTargetEffect extends RestrictionEffect { sb.append(CardUtil.numberToText(target.getMaxNumberOfTargets())).append(' '); } sb.append("target ").append(mode.getTargets().get(0).getTargetName()); - if (target.getMaxNumberOfTargets() > 1) { - sb.append('s'); - } sb.append(" can't block"); if (this.duration == Duration.EndOfTurn) {