[DOM] Some fixes and tooltip rule text changes.

This commit is contained in:
LevelX2 2018-04-19 17:53:30 +02:00
parent 97b2b2feac
commit e821d22fb6
38 changed files with 151 additions and 145 deletions

View file

@ -49,7 +49,7 @@ public class PreventDamageToAttachedEffect extends PreventionEffectImpl {
}
public PreventDamageToAttachedEffect(Duration duration, AttachmentType attachmentType, int amountToPrevent, boolean combatOnly) {
super(duration, Integer.MAX_VALUE, false, false);
super(duration, amountToPrevent, combatOnly, false);
this.attachmentType = attachmentType;
staticText = setText();
}
@ -88,14 +88,14 @@ public class PreventDamageToAttachedEffect extends PreventionEffectImpl {
sb.append("combat ");
}
sb.append("damage that would be dealt to ");
sb.append(attachmentType.toString()).append(" creature");
sb.append(attachmentType.verb()).append(" creature");
} else {
sb.append("If a source would deal ");
if (onlyCombat) {
sb.append("combat ");
}
sb.append("damage to ");
sb.append(attachmentType.toString());
sb.append(attachmentType.verb());
sb.append("creature, prevent ").append(amountToPrevent);;
sb.append("of that damage");
}