forked from External/mage
support until your next turn delayed triggers (#12233)
This commit is contained in:
parent
614be8e928
commit
3abce2f5c8
17 changed files with 502 additions and 347 deletions
|
|
@ -49,10 +49,14 @@ public class DelayedTriggeredAbilities extends AbilitiesImpl<DelayedTriggeredAbi
|
|||
this.removeIf(ability -> ability.getDuration() == Duration.EndOfTurn); // TODO: add Duration.EndOfYourTurn like effects
|
||||
}
|
||||
|
||||
public void removeStartOfNewTurn(Game game) {
|
||||
this.removeIf(ability -> ability.getDuration() == Duration.UntilYourNextTurn
|
||||
&& game.getActivePlayerId().equals(ability.getControllerId())
|
||||
);
|
||||
}
|
||||
|
||||
public void removeEndOfCombatAbilities() {
|
||||
this.removeIf(ability -> ability.getDuration() == Duration.EndOfCombat);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue