From ce2c6bc0c844c2d6a186366c6c7099f7f8f00a16 Mon Sep 17 00:00:00 2001 From: LoneFox Date: Thu, 31 Dec 2015 17:37:13 +0200 Subject: [PATCH] Fix CanBlockAdditionalCreatureEffect text when the effect lasts until end of turn --- .../combat/CanBlockAdditionalCreatureEffect.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/combat/CanBlockAdditionalCreatureEffect.java b/Mage/src/main/java/mage/abilities/effects/common/combat/CanBlockAdditionalCreatureEffect.java index efeb94f2f6..09d3157b3e 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/combat/CanBlockAdditionalCreatureEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/combat/CanBlockAdditionalCreatureEffect.java @@ -96,15 +96,18 @@ public class CanBlockAdditionalCreatureEffect extends ContinuousEffectImpl { } private String setText() { - StringBuilder sb = new StringBuilder("{this} can block "); + String text = "{this} can block "; switch(amount) { case 0: - sb.append("any number of creatures"); + text += "any number of creatures"; break; default: - sb.append(CardUtil.numberToText(amount, "an")).append(" additional creature").append(amount > 1 ? "s":""); + text += CardUtil.numberToText(amount, "an") + " additional creature" + (amount > 1 ? "s" : ""); } - return sb.toString(); + if(duration == Duration.EndOfTurn) { + text += " this turn"; + } + return text; } @Override