Fixed tooltip text of Resistance Fighter, Crimson Hellkite and Maze of Ith.

This commit is contained in:
LevelX2 2014-05-31 11:06:07 +02:00
parent 90d516f15d
commit da3936abfb
4 changed files with 30 additions and 10 deletions

View file

@ -80,12 +80,20 @@ public class PreventDamageByTargetEffect extends PreventionEffectImpl<PreventDam
}
if (amountToPrevent == Integer.MAX_VALUE) {
StringBuilder sb = new StringBuilder();
sb.append("Prevent all damage target ");
sb.append("Prevent all");
if (onlyCombat) {
sb.append("combat ");
}
sb.append(" damage target ");
sb.append(mode.getTargets().get(0).getTargetName()).append(" would deal ").append(duration.toString());
return sb.toString();
} else {
StringBuilder sb = new StringBuilder();
sb.append("Prevent the next ").append(amountToPrevent).append(" damage that ");
sb.append("Prevent the next ").append(amountToPrevent);
if (onlyCombat) {
sb.append("combat ");
}
sb.append(" damage that ");
sb.append(mode.getTargets().get(0).getTargetName()).append(" would deal ").append(duration.toString());
return sb.toString();
}

View file

@ -41,6 +41,11 @@ public class TargetAttackingCreature extends TargetPermanent<TargetAttackingCrea
this(1, 1, new FilterAttackingCreature(), false);
}
public TargetAttackingCreature(boolean required) {
this(1, 1, new FilterAttackingCreature(), false);
this.setRequired(required);
}
public TargetAttackingCreature(int numTargets) {
this(numTargets, numTargets, new FilterAttackingCreature(), false);
}