forked from External/mage
* Until end of your turn - fixed that effects discarded too early in multiplayer games (#5759, #5676);
Tests: added dozen tests for end of turn effects and related cards.
This commit is contained in:
parent
4288e45c23
commit
534037e095
22 changed files with 758 additions and 137 deletions
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.abilities;
|
||||
|
||||
import mage.constants.Duration;
|
||||
|
|
@ -48,8 +46,8 @@ public class DelayedTriggeredAbilities extends AbilitiesImpl<DelayedTriggeredAbi
|
|||
}
|
||||
}
|
||||
|
||||
public void removeEndOfTurnAbilities() {
|
||||
this.removeIf(ability -> ability.getDuration() == Duration.EndOfTurn);
|
||||
public void removeEndOfTurnAbilities(Game game) {
|
||||
this.removeIf(ability -> ability.getDuration() == Duration.EndOfTurn); // TODO: add Duration.EndOfYourTurn like effects
|
||||
}
|
||||
|
||||
public void removeEndOfCombatAbilities() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue