Skip to main content

Module trait_animate_effect

Module trait_animate_effect 

Source
Expand description

AnimateEffectBase — abstract base for animate effects.

Mirrors Java’s AnimateEffectBase.java. Provides shared logic for AnimateEffect and AnimateAllEffect that handles setting power/toughness, types, colors, and keywords.

Structs§

AnimateParams
Parsed animate parameters from a spell ability. Captures the fields that animate effects need to apply.

Functions§

do_animate
Apply animate effects to a single card. Mirrors Java’s AnimateEffectBase.doAnimate(Card, SpellAbility, ...).
parse_animate_params
Parse shared animate parameters from a spell ability. Used by both animate_effect and animate_all_effect.
resolve
Resolve the animate effect for targeted/defined cards. Mirrors Java’s AnimateEffectBase.resolve().
run
Run the animate effect (entry point that parses params then applies). Mirrors Java’s AnimateEffectBase.run().