simplify text gen for DamageCantBePreventedEffect

This commit is contained in:
xenohedron 2023-11-27 23:46:51 -05:00
parent 98f78790f2
commit 02eafaf062
10 changed files with 11 additions and 11 deletions

View file

@ -9,9 +9,9 @@ import mage.game.events.GameEvent;
public class DamageCantBePreventedEffect extends ContinuousRuleModifyingEffectImpl {
public DamageCantBePreventedEffect(Duration duration, String staticText) {
public DamageCantBePreventedEffect(Duration duration) {
super(duration, Outcome.Benefit);
this.staticText = staticText;
this.staticText = "damage can't be prevented" + (duration == Duration.EndOfTurn ? " this turn" : "");
}
protected DamageCantBePreventedEffect(final DamageCantBePreventedEffect effect) {