mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fix CanBlockAdditionalCreatureEffect text when the effect lasts until end of turn
This commit is contained in:
parent
f7c411712b
commit
ce2c6bc0c8
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue