Skip to main content

Module ability_sub

Module ability_sub 

Source
Expand description

AbilitySub – helper functions for sub-abilities in the chain. Mirrors Java’s AbilitySub.java. Sub-abilities are chained via SpellAbility.sub_ability and resolve sequentially after their parent.

Functions§

can_play
Sub-abilities cannot be played independently – they are always part of a chain triggered by a parent spell or ability. Mirrors Java’s AbilitySub.canPlay() which returns false.
resolve
Build a stack description for this sub-ability from its params. Mirrors Java’s AbilitySub.getStackDescription().