Some minor fixes.

This commit is contained in:
LevelX2 2016-09-17 16:45:53 +02:00
parent 5d98324c82
commit 04ca15a3a9
2 changed files with 4 additions and 2 deletions

View file

@ -173,8 +173,10 @@ public class MaximumHandSizeControllerEffect extends ContinuousEffectImpl {
} else if ((handSize instanceof StaticValue && ((StaticValue) handSize).getValue() == Integer.MAX_VALUE) || !(handSize instanceof StaticValue)) {
sb.append(" is ");
}
if ((handSize instanceof StaticValue && ((StaticValue) handSize).getValue() != Integer.MAX_VALUE) || !(handSize instanceof StaticValue)) {
if ((handSize instanceof StaticValue && ((StaticValue) handSize).getValue() != Integer.MAX_VALUE)) {
sb.append(CardUtil.numberToText(((StaticValue) handSize).getValue()));
} else if (!(handSize instanceof StaticValue)) {
sb.append(handSize.getMessage());
}
if (duration == Duration.EndOfGame) {
sb.append(" for the rest of the game");