Skip to main content

Module spell_ability_predicates

Module spell_ability_predicates 

Source
Expand description

Predicate functions for filtering spell abilities.

Mirrors Java’s SpellAbilityPredicates.java — provides closure-based predicates for filtering spell abilities by API type, sub-abilities, etc.

Functions§

has_sub_ability_api
Returns a predicate that matches spell abilities whose sub-ability chain contains an ability with the given API type. Mirrors Java’s SpellAbilityPredicates.hasSubAbilityApi(ApiType).
is_api
Returns a predicate that matches spell abilities with the given API type. Mirrors Java’s SpellAbilityPredicates.isApi(ApiType).
is_valid
Returns a predicate that checks if a spell ability matches all given restriction strings. Each restriction is checked against the ability’s params. Mirrors Java’s SpellAbilityPredicates.isValid(String[]).