Skip to main content

create_effect

Function create_effect 

Source
pub fn create_effect(
    game: &mut GameState,
    sa: &SpellAbility,
    name: &str,
    _image: &str,
) -> CardId
Expand description

Create a temporary “effect” card in the command zone. Mirrors Java’s SpellAbilityEffect.createEffect(SpellAbility, Player, String, String).

Effect cards are invisible game objects that hold continuous effects, delayed triggers, and other state that persists beyond a single resolution. They are placed in the Command zone and cleaned up when their effect ends.