game: fixed miss state triggers check in multi-steps abilities/effects (#10564)

This commit is contained in:
Oleg Agafonov 2023-07-05 09:52:38 +04:00
parent b66189d3da
commit f26b1470fa
4 changed files with 31 additions and 8 deletions

View file

@ -655,10 +655,19 @@ public class GameState implements Serializable, Copyable<GameState> {
this.gameOver = true;
}
// 608.2e
/**
* Must be called between effects/steps in the ability's resolve
* <p>
* 608.2e
* Some spells and abilities have multiple steps or actions, denoted by separate sentences or clauses,
* that involve multiple players. In these cases, the choices for the first action are made in APNAP order,
* and then the first action is processed simultaneously. Then the choices for the second action are made in
* APNAP order, and then that action is processed simultaneously, and so on. See rule 101.4.
*/
public void processAction(Game game) {
game.getState().handleSimultaneousEvent(game);
game.applyEffects();
game.getState().getTriggers().checkStateTriggers(game);
}
public void applyEffects(Game game) {