# Ability Matches Filters

Grammar — Player abilityOwner’s abiliy ability mathes class abilityClass and alias alias
FlagsFunction

# Arguments

  • string<gamelink::Abil> — Ability
  • int — Ability Owner
  • int<preset::AbilityClass> — Ability Class
  • string — Alias

Returns — bool

bool libNtve_gf_AbilityMatchesFilters(
	string lp_ability,
	int lp_abilityOwner,
	int lp_abilityClass,
	string lp_alias,
);

Category: Ability / Basic

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:239

    for ( ; auto981DBC05_i <= UnitAbilityCount(auto981DBC05_unit) ; auto981DBC05_i += 1 ) {
        lv_itAbil = UnitAbilityGet(auto981DBC05_unit, auto981DBC05_i);
        if ((libNtve_gf_AbilityMatchesFilters(lv_itAbil, lv_player, lp_abilityClass, lp_alias) == true)) {
            return lv_itAbil;
        }