Skip to main content

apply_continuous_effects

Function apply_continuous_effects 

Source
pub fn apply_continuous_effects(game: &mut GameState)
Expand description

Recompute all continuously-applied static-ability effects for the current game state.

This is the Rust equivalent of Java Forge’s GameAction.checkStaticAbilities() + StaticAbilityContinuous.applyContinuousAbility().

Call this after:

  • Any permanent enters or leaves the battlefield.
  • Any spell or ability resolves.
  • Any triggered ability fires.
  • Before querying can_attack() / can_block() for combat legality.