mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Fixed tooltip text of Resistance Fighter, Crimson Hellkite and Maze of Ith.
This commit is contained in:
parent
90d516f15d
commit
da3936abfb
4 changed files with 30 additions and 10 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue