Revert "Revert "Merge branch 'planeswalkerErrata' into master""

This reverts commit f10b62f3da.
This commit is contained in:
Evan Kranzler 2018-04-20 20:42:04 -04:00
parent ddf5aa3b4e
commit 198be1549d
754 changed files with 3085 additions and 3051 deletions

View file

@ -82,11 +82,16 @@ public class PreventDamageToTargetEffect extends PreventionEffectImpl {
}
StringBuilder sb = new StringBuilder();
if (amountToPrevent == Integer.MAX_VALUE) {
sb.append("prevent all damage that would be dealt to target ");
sb.append("prevent all damage that would be dealt to ");
} else {
sb.append("prevent the next ").append(amountToPrevent).append(" damage that would be dealt to target ");
sb.append("prevent the next ").append(amountToPrevent).append(" damage that would be dealt to ");
}
String targetName = mode.getTargets().get(0).getTargetName();
if (targetName.contains("any")) {
sb.append(targetName);
} else {
sb.append("target ").append(targetName);
}
sb.append(mode.getTargets().get(0).getTargetName());
if (!duration.toString().isEmpty()) {
sb.append(' ');
if (duration == Duration.EndOfTurn) {