mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[TLA] Implement Earthbender Ascension
This commit is contained in:
parent
dc07b24ed3
commit
6b482f2afc
3 changed files with 100 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue