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[]).