Skip to main content

Module effect_resolver

Module effect_resolver 

Source
Expand description

Effect resolution driver — dispatch on ApiType and walk sub-ability chains.

Mirrors Java’s AbilityUtils.resolveApiAbility + the target-context propagation that stack resolution performs in SpellAbility.resolve.

Constants§

IMPLEMENTED_API_TYPES
All API types that have implemented effect handlers. Used by the fuzz card pool filter to exclude cards with unimplemented effects.

Functions§

resolve_effect
Resolve a single SpellAbility node’s effect by dispatching on its API type. Mirrors Java’s AbilityUtils.resolveApiAbility(sa).
resolve_effect_chain
resolve_effect_chain_with_parent
Resolve a SpellAbility and its linked sub-ability chain, inheriting parent card/player targets onto child nodes when those nodes don’t choose their own. Mirrors the target-context propagation used by stack resolution.