mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- FIx End Turn effect not clearing waiting triggers from the stack.
This commit is contained in:
@@ -26,6 +26,8 @@ public class EndTurnEffect extends SpellAbilityEffect {
|
||||
game.getAction().exile(c);
|
||||
}
|
||||
game.getStack().clear();
|
||||
game.getStack().clearSimultaneousStack();
|
||||
game.getTriggerHandler().clearWaitingTriggers();
|
||||
|
||||
// 2) All attacking and blocking creatures are removed from combat.
|
||||
game.getPhaseHandler().endCombat();
|
||||
|
||||
@@ -324,6 +324,10 @@ public class TriggerHandler {
|
||||
return checkStatics;
|
||||
}
|
||||
|
||||
public void clearWaitingTriggers() {
|
||||
waitingTriggers.clear();
|
||||
}
|
||||
|
||||
private boolean runNonStaticTriggersForPlayer(final Player player, final TriggerType mode,
|
||||
final Map<String, Object> runParams, final List<Trigger> delayedTriggersWorkingCopy ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user