Skip to main content

get_stack_description_with_subs

Function get_stack_description_with_subs 

Source
pub fn get_stack_description_with_subs(
    game: &GameState,
    sa: &SpellAbility,
    stack_desc_fallback: &str,
) -> String
Expand description

Render the stack description for a SpellAbility, including sub-ability text. Mirrors Java SpellAbilityEffect.getStackDescriptionWithSubs(Map, SpellAbility).

stack_desc_fallback supplies the getStackDescription(sa) hook (per-effect overrides) when the SA has no StackDescription$ param. Pass the SA’s own description field for the default behavior.