Some minor changes to cards and framework classes.

This commit is contained in:
LevelX2 2014-12-16 18:01:56 +01:00
parent 1141e4c2fa
commit a12fa6e3a1
7 changed files with 113 additions and 52 deletions

View file

@ -82,7 +82,15 @@ public class PreventDamageToTargetEffect extends PreventionEffectImpl {
} else {
sb.append("Prevent the next ").append(amountToPrevent).append(" damage that would be dealt to target ");
}
sb.append(mode.getTargets().get(0).getTargetName()).append(" ").append(duration.toString());
sb.append(mode.getTargets().get(0).getTargetName());
if (!duration.toString().isEmpty()) {
sb.append(" ");
if (duration.equals(Duration.EndOfTurn)) {
sb.append("this turn");
} else {
sb.append(duration.toString());
}
}
return sb.toString();
}