Skip to main content

exile_effect_command

Function exile_effect_command 

Source
pub fn exile_effect_command(
    game: &mut GameState,
    trigger_handler: &mut TriggerHandler,
    sa: &SpellAbility,
    card_id: CardId,
)
Expand description

Execute the “exile with” command — exile a card and track the exile source. Mirrors Java’s SpellAbilityEffect.exileEffectCommand(Game, SpellAbility, Card).

Moves the card to exile, sets up the exiled_with tracking, and optionally adds it to the source’s remembered list.