foul-magics/Mage/src/main/java/mage/abilities/effects/OneShotEffect.java
Susucre 249e7bf31b
[WOC] Implement Court of Embereth (#10971)
* Clean text generation of ConditionalOneShotEffect to prevent "if if"

* [WOC] Implement Court of Embereth
2023-09-08 23:57:36 -04:00

27 lines
549 B
Java

package mage.abilities.effects;
import mage.constants.EffectType;
import mage.constants.Outcome;
/**
* @author BetaSteward_at_googlemail.com
*/
public abstract class OneShotEffect extends EffectImpl {
public OneShotEffect(Outcome outcome) {
super(outcome);
this.effectType = EffectType.ONESHOT;
}
protected OneShotEffect(final OneShotEffect effect) {
super(effect);
}
@Override
public OneShotEffect setText(String staticText) {
super.setText(staticText);
return this;
}
}