Skip to main content

would_phase_be_skipped

Function would_phase_be_skipped 

Source
pub fn would_phase_be_skipped(
    game: &GameState,
    player: PlayerId,
    phase: PhaseType,
) -> bool
Expand description

Check if any BeginPhase replacement effect in the Control layer would skip the given phase for the given player.

Walks all battlefield cards looking for matching BeginPhase effects with Layer$ Control (or CantHappen) whose ActivePhases$ includes the target phase and whose ValidPlayer$ matches the player.

Mirrors Java ReplacementHandler.wouldPhaseBeSkipped().