Skip to main content

Module spell_ability_stack_instance

Module spell_ability_stack_instance 

Source
Expand description

SpellAbilityStackInstance – stack entry for spells/abilities. Mirrors Java’s SpellAbilityStackInstance.java. The core struct is StackEntry in crate::zone::magic_stack. This module re-exports it and provides additional query methods that mirror the Java API.

Re-exports§

pub use crate::zone::magic_stack::StackEntry;

Functions§

next_id
Get the next unique stack instance ID. Mirrors Java’s SpellAbilityStackInstance.nextId(). Delegates to StackEntry::next_id() in zone/magic_stack.rs.
set_triggering_object
Set a triggering object on a stack entry. Delegates to StackEntry::set_triggering_object().
update_target
Update a target card on a stack entry. Delegates to StackEntry::update_target().
update_triggering_object
Update a triggering object on a stack entry. Delegates to StackEntry::update_triggering_object().