[TLA] Implement Earthbender Ascension

This commit is contained in:
theelk801 2025-11-04 12:52:02 -05:00
parent dc07b24ed3
commit 6b482f2afc
3 changed files with 100 additions and 8 deletions

View file

@ -14,7 +14,6 @@ import mage.util.CardUtil;
public class ReflexiveTriggeredAbility extends DelayedTriggeredAbility {
private final String text;
private final Condition condition;
public ReflexiveTriggeredAbility(Effect effect, boolean optional) {
this(effect, optional, null);
@ -27,13 +26,14 @@ public class ReflexiveTriggeredAbility extends DelayedTriggeredAbility {
public ReflexiveTriggeredAbility(Effect effect, boolean optional, String text, Condition condition) {
super(effect, Duration.EndOfTurn, true, optional);
this.text = text;
this.condition = condition;
if (condition != null) {
this.withInterveningIf(condition);
}
}
protected ReflexiveTriggeredAbility(final ReflexiveTriggeredAbility ability) {
super(ability);
this.text = ability.text;
this.condition = ability.condition;
}
@Override
@ -55,11 +55,6 @@ public class ReflexiveTriggeredAbility extends DelayedTriggeredAbility {
return CardUtil.getTextWithFirstCharUpperCase(text) + '.';
}
@Override
public boolean checkInterveningIfClause(Game game) {
return condition == null || condition.apply(game, this);
}
@Override
public ReflexiveTriggeredAbility setTriggerPhrase(String triggerPhrase) {
super.setTriggerPhrase(triggerPhrase);