# Ability Enabled For Unit

Grammarabil is enabled for u
FlagsNative | Function

Returns true if the specified ability is enabled/disabled for the specified unit.

# Arguments

Returns — bool

native bool UnitAbilityCheck(
	unit inUnit,
	string inAbil,
	bool inEnabled,
);

Category: Ability / Basic

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1074

    }
    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_hybrid, "ZHybridPsionicShockwave", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridPsionicShockwave", 0), c_cmdStateCooldown) == false) && ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 5) || ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1) && (UnitGetPropertyFixed(lp_hybrid, c_unitPropLifePercent, c_unitPropCurrent) <= 15.0)))) {
            libNtve_gf_AICast(lp_hybrid, Order(AbilityCommand("ZHybridPsionicShockwave", 0)));
            lv_actionSuggested = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1093


            }
            if ((UnitAbilityCheck(lp_hybrid, "HybridCPlasmaBlast", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ZHybridPlasmaBlast", 0), lv_victim));
                lv_actionSuggested = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1098

            }

            if ((UnitAbilityCheck(lp_hybrid, "ZHybridGravitonPrison", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridGravitonPrison", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) > 1)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ZHybridGravitonPrison", 0), lv_victim));
                lv_actionSuggested = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:2586


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitAbilityCheck(gv_dEHAKA, "Drag", false) == true)) {
        TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("Drag", 0), true);
        TriggerEnable(gt_TeachDehakaDrag, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:2733


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitAbilityCheck(gv_dEHAKA, "DehakaMirrorImage", false) == true)) {
        TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("DehakaMirrorImage", 0), true);
        TriggerEnable(gt_TeachDehakaGenerateSpawnsUsed, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:1074

    }
    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_hybrid, "ZHybridPsionicShockwave", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridPsionicShockwave", 0), c_cmdStateCooldown) == false) && ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 5) || ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1) && (UnitGetPropertyFixed(lp_hybrid, c_unitPropLifePercent, c_unitPropCurrent) <= 15.0)))) {
            libNtve_gf_AICast(lp_hybrid, Order(AbilityCommand("ZHybridPsionicShockwave", 0)));
            lv_actionSuggested = true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:1093


            }
            if ((UnitAbilityCheck(lp_hybrid, "HybridCPlasmaBlast", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ZHybridPlasmaBlast", 0), lv_victim));
                lv_actionSuggested = true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:1098

            }

            if ((UnitAbilityCheck(lp_hybrid, "ZHybridGravitonPrison", true) == true) && (UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ZHybridGravitonPrison", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) > 1)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ZHybridGravitonPrison", 0), lv_victim));
                lv_actionSuggested = true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:2586


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitAbilityCheck(gv_dEHAKA, "Drag", false) == true)) {
        TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("Drag", 0), true);
        TriggerEnable(gt_TeachDehakaDrag, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:2733


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitAbilityCheck(gv_dEHAKA, "DehakaMirrorImage", false) == true)) {
        TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("DehakaMirrorImage", 0), true);
        TriggerEnable(gt_TeachDehakaGenerateSpawnsUsed, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:772

    // Implementation
    lv_enemyGroup7 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_darkArchon, 9.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterHeroic) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup7, c_unitCountAlive) > 0) && (UnitAbilityCheck(lp_darkArchon, "HybridGeneralPhaseShift", true) == true) && (UnitCheckAbilCmdState(lp_darkArchon, AbilityCommand("HybridGeneralPhaseShift", 0), c_cmdStateCooldown) == false)) {
        auto673F34C5_g = lv_enemyGroup7;
        auto673F34C5_u = UnitGroupCount(auto673F34C5_g, c_unitCountAll);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:794

    lv_enemyGroup10 = gf_EnemiesWithinRange(lp_kerrigan, 10.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_kerrigan, "MindBolt", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
            lv_victim = UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive);
            autoD361CF6E_g = lv_enemyGroup10;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:810

        }

        if ((UnitAbilityCheck(lp_kerrigan, "PsionicLift", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("PsionicLift", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) >= 5)) {
            UnitGroupRemoveUnitGroup(lv_enemyGroup10, UnitGroupFilter(null, c_playerAny, lv_enemyGroup10, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            lv_victim = UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:829

    }

    if ((UnitAbilityCheck(lp_kerrigan, "PrimalHeal", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("PrimalHeal", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(gv_zeratul, c_unitPropLifePercent, c_unitPropCurrent) <= 50.0)) {
        libNtve_gf_AICast(lp_kerrigan, Order(AbilityCommand("PrimalHeal", 0)));
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:4940

            }
            if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
                if ((UnitAbilityCheck(gv_stukov, "StukovInfestedTerrans", true) == true) && (UnitCheckAbilCmdState(gv_stukov, AbilityCommand("StukovInfestedTerrans", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {
                    UnitGroupRemoveUnitGroup(lv_candidates, gf_EnemiesWithinStukovRange(gv_stukov, 2.0, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))));
                    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:4972


                    }
                    if ((UnitAbilityCheck(gv_stukov, "DevastatingShot", true) == true) && (UnitCheckAbilCmdState(gv_stukov, AbilityCommand("DevastatingShot", 0), c_cmdStateCooldown) == false)) {
                        libNtve_gf_AICast(gv_stukov, OrderTargetingUnit(AbilityCommand("DevastatingShot", 0), lv_victim));
                    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:5160

            }
            if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
                if ((UnitAbilityCheck(gv_kerrigan, "PsionicLift", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) >= 5)) {
                    UnitGroupRemoveUnitGroup(lv_candidates, gf_EnemiesWithinKerriganRange(gv_kerrigan, 2.0, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))));
                    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:5192


                    }
                    if ((UnitAbilityCheck(gv_kerrigan, "MindBolt", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
                        libNtve_gf_AICast(gv_kerrigan, OrderTargetingUnit(AbilityCommand("MindBolt", 0), lv_victim));
                    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:5199

            }

            if ((UnitAbilityCheck(gv_kerrigan, "PrimalHeal", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("PrimalHeal", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(gv_kerrigan, c_unitPropLifePercent, c_unitPropCurrent) <= 50.0)) {
                libNtve_gf_AICast(gv_kerrigan, Order(AbilityCommand("PrimalHeal", 0)));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:517

    // Implementation
    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_artanis, 8.0, UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitAbilityCheck(lp_artanis, "ArtanisLightningDash", true) == true) && (UnitCheckAbilCmdState(lp_artanis, AbilityCommand("ArtanisLightningDash", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        lv_target = null;
        lv_clusterCount = 2;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:577

    // Implementation
    lv_friendlyGroup7 = UnitGroupAlliance(UnitGetOwner(lp_zagara), c_unitAllianceAlly, RegionCircle(UnitGetPosition(lp_zagara), 7.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
    if ((UnitAbilityCheck(lp_zagara, "Transfusion", true) == true) && (UnitCheckAbilCmdState(lp_zagara, AbilityCommand("Transfusion", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(lp_zagara, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("Transfusion", "Energy")) && (UnitGroupCount(lv_friendlyGroup7, c_unitCountAlive) > 0)) {
        lv_target = null;
        lv_mostDamage = 50.0;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:772

    // Implementation
    lv_enemyGroup7 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_darkArchon, 9.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterHeroic) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup7, c_unitCountAlive) > 0) && (UnitAbilityCheck(lp_darkArchon, "HybridGeneralPhaseShift", true) == true) && (UnitCheckAbilCmdState(lp_darkArchon, AbilityCommand("HybridGeneralPhaseShift", 0), c_cmdStateCooldown) == false)) {
        auto673F34C5_g = lv_enemyGroup7;
        auto673F34C5_u = UnitGroupCount(auto673F34C5_g, c_unitCountAll);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:794

    lv_enemyGroup10 = gf_EnemiesWithinRange(lp_kerrigan, 10.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_kerrigan, "MindBolt", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
            lv_victim = UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive);
            autoD361CF6E_g = lv_enemyGroup10;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:810

        }

        if ((UnitAbilityCheck(lp_kerrigan, "PsionicLift", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("PsionicLift", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) >= 5)) {
            UnitGroupRemoveUnitGroup(lv_enemyGroup10, UnitGroupFilter(null, c_playerAny, lv_enemyGroup10, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            lv_victim = UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:829

    }

    if ((UnitAbilityCheck(lp_kerrigan, "PrimalHeal", true) == true) && (UnitCheckAbilCmdState(lp_kerrigan, AbilityCommand("PrimalHeal", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(gv_zeratul, c_unitPropLifePercent, c_unitPropCurrent) <= 50.0)) {
        libNtve_gf_AICast(lp_kerrigan, Order(AbilityCommand("PrimalHeal", 0)));
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:4940

            }
            if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
                if ((UnitAbilityCheck(gv_stukov, "StukovInfestedTerrans", true) == true) && (UnitCheckAbilCmdState(gv_stukov, AbilityCommand("StukovInfestedTerrans", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {
                    UnitGroupRemoveUnitGroup(lv_candidates, gf_EnemiesWithinStukovRange(gv_stukov, 2.0, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))));
                    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:4972


                    }
                    if ((UnitAbilityCheck(gv_stukov, "DevastatingShot", true) == true) && (UnitCheckAbilCmdState(gv_stukov, AbilityCommand("DevastatingShot", 0), c_cmdStateCooldown) == false)) {
                        libNtve_gf_AICast(gv_stukov, OrderTargetingUnit(AbilityCommand("DevastatingShot", 0), lv_victim));
                    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:5160

            }
            if ((UnitGroupCount(lv_candidates, c_unitCountAlive) > 0)) {
                if ((UnitAbilityCheck(gv_kerrigan, "PsionicLift", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_candidates, c_unitCountAlive) >= 5)) {
                    UnitGroupRemoveUnitGroup(lv_candidates, gf_EnemiesWithinKerriganRange(gv_kerrigan, 2.0, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))));
                    if ((UnitGroupCount(lv_candidates, c_unitCountAlive) >= 1)) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:5192


                    }
                    if ((UnitAbilityCheck(gv_kerrigan, "MindBolt", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
                        libNtve_gf_AICast(gv_kerrigan, OrderTargetingUnit(AbilityCommand("MindBolt", 0), lv_victim));
                    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:5199

            }

            if ((UnitAbilityCheck(gv_kerrigan, "PrimalHeal", true) == true) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("PrimalHeal", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(gv_kerrigan, c_unitPropLifePercent, c_unitPropCurrent) <= 50.0)) {
                libNtve_gf_AICast(gv_kerrigan, Order(AbilityCommand("PrimalHeal", 0)));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:517

    // Implementation
    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_artanis, 8.0, UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitAbilityCheck(lp_artanis, "ArtanisLightningDash", true) == true) && (UnitCheckAbilCmdState(lp_artanis, AbilityCommand("ArtanisLightningDash", 0), c_cmdStateCooldown) == false) && (UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        lv_target = null;
        lv_clusterCount = 2;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:577

    // Implementation
    lv_friendlyGroup7 = UnitGroupAlliance(UnitGetOwner(lp_zagara), c_unitAllianceAlly, RegionCircle(UnitGetPosition(lp_zagara), 7.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
    if ((UnitAbilityCheck(lp_zagara, "Transfusion", true) == true) && (UnitCheckAbilCmdState(lp_zagara, AbilityCommand("Transfusion", 0), c_cmdStateCooldown) == false) && (UnitGetPropertyFixed(lp_zagara, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("Transfusion", "Energy")) && (UnitGroupCount(lv_friendlyGroup7, c_unitCountAlive) > 0)) {
        lv_target = null;
        lv_mostDamage = 50.0;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:101

    // Implementation
    lv_enemyGroup7 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_darkArchon, 7.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterHeroic) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup7, c_unitCountAlive) > 0) && (UnitGetPropertyFixed(lp_darkArchon, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("DarkArchonMindControl", "Energy")) && (UnitAbilityCheck(lp_darkArchon, "DarkArchonMindControl", true) == true) && (UnitCheckAbilCmdState(lp_darkArchon, AbilityCommand("DarkArchonMindControl", 0), c_cmdStateCooldown) == false)) {
        auto07EB9AE6_g = lv_enemyGroup7;
        auto07EB9AE6_u = UnitGroupCount(auto07EB9AE6_g, c_unitCountAll);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:132

    lv_enemyGroup7 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_darkArchon, 7.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterHeroic) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    UnitGroupRemoveUnitGroup(lv_enemyGroup7, libVCMI_gf_AITacticalEnemiesWithinRange(lp_darkArchon, 1.5, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterHeroic) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))));
    if ((UnitGroupCount(lv_enemyGroup7, c_unitCountAlive) > 0) && (UnitGetPropertyFixed(lp_darkArchon, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("DarkArchonConfusion", "Energy")) && (UnitAbilityCheck(lp_darkArchon, "DarkArchonConfusion", true) == true) && (UnitCheckAbilCmdState(lp_darkArchon, AbilityCommand("DarkArchonConfusion", 0), c_cmdStateCooldown) == false)) {
        autoC5AF83C6_g = lv_enemyGroup7;
        autoC5AF83C6_u = UnitGroupCount(autoC5AF83C6_g, c_unitCountAll);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:170

    // Implementation
    lv_enemyGroup10 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_highTemplarTaldarim, 10.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0) && (UnitGetPropertyFixed(lp_highTemplarTaldarim, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("VoidHighTemplarMindBlast", "Energy")) && (UnitAbilityCheck(lp_highTemplarTaldarim, "VoidHighTemplarMindBlast", true) == true) && (UnitCheckAbilCmdState(lp_highTemplarTaldarim, AbilityCommand("VoidHighTemplarMindBlast", 0), c_cmdStateCooldown) == false)) {
        if ((UnitGetPropertyFixed(lp_highTemplarTaldarim, c_unitPropShields, c_unitPropCurrent) == 0.0)) {
            lv_target = UnitGroupClosestToPoint(lv_enemyGroup10, UnitGetPosition(lp_highTemplarTaldarim));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:197


    lv_enemyGroup10 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_highTemplarTaldarim, 10.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterUncommandable), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0) && (UnitGetPropertyFixed(lp_highTemplarTaldarim, c_unitPropEnergy, c_unitPropCurrent) >= libNtve_gf_CostOfAbility("VoidHighTemplarPsiOrb", "Energy")) && (UnitAbilityCheck(lp_highTemplarTaldarim, "VoidHighTemplarPsiOrb", true) == true) && (UnitCheckAbilCmdState(lp_highTemplarTaldarim, AbilityCommand("VoidHighTemplarPsiOrb", 0), c_cmdStateCooldown) == false)) {
        if ((UnitGetPropertyFixed(lp_highTemplarTaldarim, c_unitPropShields, c_unitPropCurrent) == 0.0)) {
            lv_target = UnitGroupClosestToPoint(lv_enemyGroup10, UnitGetPosition(lp_highTemplarTaldarim));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4974

                if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPerk) == lv_indexPerkGroup ) {
                    lv_indexCommand = UserDataGetAbilCmd("CampaignPerk", lv_indexPerk, "AbilityCommand", 1);
                    if ((UnitAbilityCheck(libVCUI_gv_pU_GPUnit, AbilityCommandGetAbility(lv_indexCommand), true) == true) && (UnitCheckAbilCmdState(libVCUI_gv_pU_GPUnit, lv_indexCommand, c_cmdStateDisabled) == false)) {
                        UISetButtonHighlighted(PlayerGroupAll(), lv_indexCommand, lp_onOff);
                    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3083

    }
    else {
        if ((UnitAbilityCheck(lv_misha, "attack", false) == true)) {
            UnitAbilityEnable(lv_misha, "attack", true);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8925

    // Automatic Variable Declarations
    // Implementation
    if (((UnitAbilityCheck(lp_hero, "Mount", true) == true) || ((UnitGetType(lp_hero) == "HeroRehgar") && (UnitAbilityCheck(lp_hero, "RehgarGhostWolfActivate", true) == true)))) {
        return true;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8925

    // Automatic Variable Declarations
    // Implementation
    if (((UnitAbilityCheck(lp_hero, "Mount", true) == true) || ((UnitGetType(lp_hero) == "HeroRehgar") && (UnitAbilityCheck(lp_hero, "RehgarGhostWolfActivate", true) == true)))) {
        return true;
    }

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:1435

    lv_cloakedEnemyGroup12 = gf_EnemiesWithinRange(lp_oracle, 12.0, UnitFilter((1 << c_targetFilterCloaked), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_cloakedEnemyGroup12, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_oracle, "OracleRevelationV2", true) == true) && (UnitCheckAbilCmdState(lp_oracle, AbilityCommand("OracleRevelationV2", 0), c_cmdStateCooldown) == false)) {
            lv_victim = UnitGroupRandomUnit(lv_cloakedEnemyGroup12, c_unitCountAlive);
            auto141DBA84_g = lv_cloakedEnemyGroup12;

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:1435

    lv_cloakedEnemyGroup12 = gf_EnemiesWithinRange(lp_oracle, 12.0, UnitFilter((1 << c_targetFilterCloaked), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
    if ((UnitGroupCount(lv_cloakedEnemyGroup12, c_unitCountAlive) > 0)) {
        if ((UnitAbilityCheck(lp_oracle, "OracleRevelationV2", true) == true) && (UnitCheckAbilCmdState(lp_oracle, AbilityCommand("OracleRevelationV2", 0), c_cmdStateCooldown) == false)) {
            lv_victim = UnitGroupRandomUnit(lv_cloakedEnemyGroup12, c_unitCountAlive);
            auto141DBA84_g = lv_cloakedEnemyGroup12;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:1734

            lv_dropUnit = UnitGroupUnitFromEnd(autoC809B237_g, autoC809B237_u);
            if (lv_dropUnit == null) { break; }
            if ((((UnitGroupHasUnit(lv_dropGroupProtoss, lv_dropUnit) == true) && (UnitAbilityCheck(lv_dropUnit, "move", true) == false)) || (((UnitGroupHasUnit(lv_dropGroupTerran, lv_dropUnit) == true) || (UnitGroupHasUnit(lv_dropGroupZerg, lv_dropUnit) == true)) && (libNtve_gf_UnitIsPaused(lv_dropUnit) == true)))) {
                lv_dropComplete = false;
                break;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:13308

            for ( ; ( (autoD8196C4C_ai >= 0 && lv_abilityIndex <= autoD8196C4C_ae) || (autoD8196C4C_ai < 0 && lv_abilityIndex >= autoD8196C4C_ae) ) ; lv_abilityIndex += autoD8196C4C_ai ) {
                lv_structureAbility = UnitAbilityGet(lv_indexStructure, lv_abilityIndex);
                if ((UnitAbilityCheck(lv_indexStructure, lv_structureAbility, true) == false)) {
                    continue;
                }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:639

        }
        else {
            if ((UnitAbilityCheck(lp_aIUnit, lv_itAbilLink, true) == true) && (UnitCheckAbilCmdState(lp_aIUnit, AbilityCommand(lv_itAbilLink, 0), c_cmdStateDisabled) == false)) {
                lv_itAbilTact = CatalogFieldValueGet(c_gameCatalogAbil, lv_itAbilLink, "TacticalAIFunc", lp_owner);
                if ((StringLength(lv_itAbilTact) > 0)) {