# Unit Ability Command State

Grammarunit ability command abilityCommand is in state state
FlagsNative | Function

Returns true if a unit’s ability command is at a certain state.

# Arguments

Returns — bool

native bool UnitCheckAbilCmdState(
	unit inUnit,
	abilcmd inAbilCmd,
	int inState,
);

Category: Ability / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:17

    ord = AICreateOrder(player, c_AB_Repair, 0);
    repaircmd = OrderGetAbilityCommand (ord);
    if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
        ord = OrderSetAutoCast(repaircmd, false);
        if (UnitOrderIsValid(aiUnit, ord)) {

campaigns/swarm.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:17

    ord = AICreateOrder(player, c_AB_Repair, 0);
    repaircmd = OrderGetAbilityCommand (ord);
    if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
        ord = OrderSetAutoCast(repaircmd, false);
        if (UnitOrderIsValid(aiUnit, ord)) {

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/zlab02.sc2map/MapScript.galaxy:9239

    }

    if ((UnitGetPropertyFixed(gv_kerrigan, c_unitPropEnergy, c_unitPropCurrent) >= 50.0) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
        TriggerEnable(TriggerGetCurrent(), false);
        TriggerQueueEnter();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:508

    UISetButtonHighlighted(PlayerGroupAll(), lp_command, true);
    if ((lp_command == AbilityCommand("PrimalHeal", 0))) {
        while (!(((UnitCheckAbilCmdState(lp_caster, lp_command, c_cmdStateCooldown) == true) || (UnitIsAlive(lp_caster) == false)))) {
            Wait(0.1, c_timeGame);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:513

    }
    else {
        while (!(((UnitCheckAbilCmdState(lp_caster, lp_command, c_cmdStateCooldown) == true) || (UnitIsAlive(lp_caster) == false) || (UnitIsAlive(lp_target) == false) || (UnitGetPropertyFixed(lp_target, c_unitPropLife, c_unitPropCurrent) < UnitGetPropertyFixed(lp_target, c_unitPropLifeMax, c_unitPropCurrent))))) {
            Wait(0.1, c_timeGame);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:2475

    }

    if ((UnitCheckAbilCmdState(gv_zeratul, AbilityCommand("PrologueVoidArmor", 0), c_cmdStateHidden) == true)) {
        UnitAbilityShow(gv_zeratul, "PrologueVoidArmor", true);
        UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("PrologueVoidArmor", 0), true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:2563


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitCheckAbilCmdState(gv_zeratul, AbilityCommand("ShadowBlade", 0), c_cmdStateHidden) == true)) {
        UnitAbilityShow(gv_zeratul, "ShadowBlade", true);
        UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ShadowBlade", 0), true);

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/zlab02.sc2mapMapScript.galaxy:9239

    }

    if ((UnitGetPropertyFixed(gv_kerrigan, c_unitPropEnergy, c_unitPropCurrent) >= 50.0) && (UnitCheckAbilCmdState(gv_kerrigan, AbilityCommand("MindBolt", 0), c_cmdStateCooldown) == false)) {
        TriggerEnable(TriggerGetCurrent(), false);
        TriggerQueueEnter();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2mapMapScript.galaxy:508

    UISetButtonHighlighted(PlayerGroupAll(), lp_command, true);
    if ((lp_command == AbilityCommand("PrimalHeal", 0))) {
        while (!(((UnitCheckAbilCmdState(lp_caster, lp_command, c_cmdStateCooldown) == true) || (UnitIsAlive(lp_caster) == false)))) {
            Wait(0.1, c_timeGame);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2mapMapScript.galaxy:513

    }
    else {
        while (!(((UnitCheckAbilCmdState(lp_caster, lp_command, c_cmdStateCooldown) == true) || (UnitIsAlive(lp_caster) == false) || (UnitIsAlive(lp_target) == false) || (UnitGetPropertyFixed(lp_target, c_unitPropLife, c_unitPropCurrent) < UnitGetPropertyFixed(lp_target, c_unitPropLifeMax, c_unitPropCurrent))))) {
            Wait(0.1, c_timeGame);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:2475

    }

    if ((UnitCheckAbilCmdState(gv_zeratul, AbilityCommand("PrologueVoidArmor", 0), c_cmdStateHidden) == true)) {
        UnitAbilityShow(gv_zeratul, "PrologueVoidArmor", true);
        UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("PrologueVoidArmor", 0), true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:2563


    TriggerEnable(TriggerGetCurrent(), false);
    if ((UnitCheckAbilCmdState(gv_zeratul, AbilityCommand("ShadowBlade", 0), c_cmdStateHidden) == true)) {
        UnitAbilityShow(gv_zeratul, "ShadowBlade", true);
        UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ShadowBlade", 0), true);

campaigns/void.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:17

    ord = AICreateOrder(player, c_AB_Repair, 0);
    repaircmd = OrderGetAbilityCommand (ord);
    if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
        ord = OrderSetAutoCast(repaircmd, false);
        if (UnitOrderIsValid(aiUnit, ord)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:792


    // Implementation
    if ((UnitGetPropertyFixed(lp_blinkStalker, c_unitPropShields, c_unitPropCurrent) == 0.0) && (UnitCheckAbilCmdState(lp_blinkStalker, AbilityCommand("BlinkShieldRestore", 0), c_cmdStateCooldown) == false)) {
        lv_targetPoint = PointWithOffsetPolar(UnitGetPosition(lp_blinkStalker), -2.0, UnitGetFacing(lp_blinkStalker));
        libNtve_gf_AICast(lp_blinkStalker, OrderTargetingPoint(AbilityCommand("BlinkShieldRestore", 0), lv_targetPoint));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:838

    lv_enemyGroup10 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_karax, 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 ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("PhaseCannon", 0), c_cmdStateCooldown) == false)) {
            lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_karax), 4.0, UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive)));
            libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:842

            libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));
        }
        else if ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("Reclamation", 0), c_cmdStateCooldown) == false)) {
            auto70237CCA_g = lv_enemyGroup10;
            auto70237CCA_u = UnitGroupCount(auto70237CCA_g, c_unitCountAll);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:885

    }
    if ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitHasBehavior2(lp_alarak, "AlarakDeadlyCharging") == false) && (UnitCheckAbilCmdState(lp_alarak, AbilityCommand("AlarakKnockback", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_alarak), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak)))) <= 4.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:911

    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_vorazun, 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 ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowFury", 0), c_cmdStateCooldown) == true) && (UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowDash", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_vorazun), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)))) <= 5.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:911

    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_vorazun, 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 ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowFury", 0), c_cmdStateCooldown) == true) && (UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowDash", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_vorazun), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)))) <= 5.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:441

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:454


        lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            auto3AA63390_g = lv_enemyGroup9;
            auto3AA63390_u = UnitGroupCount(auto3AA63390_g, c_unitCountAll);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:991

    while ((UnitIsAlive(lp_hybrid) == true) && (libVCMI_gf_GameIsOver() == false)) {
        lv_enemyGroup5 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 5.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ConsumeDNA", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup5, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup5)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:999


        lv_targetCount = UnitGroupCount(lv_enemyGroup5, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridFAoEStun", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            libNtve_gf_AICast(lp_hybrid, Order(AbilityCommand("HybridFAoEStun", 0)));
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:1039

    while ((UnitIsAlive(lp_hybrid) == true) && (libVCMI_gf_GameIsOver() == false)) {
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridGeneralPhaseShift", 0), c_cmdStateCooldown) == false)) {
            auto641DF5B9_g = lv_enemyGroup9;
            auto641DF5B9_u = UnitGroupCount(auto641DF5B9_g, c_unitCountAll);

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/ptaldarim02.sc2map/MapScript.galaxy:939

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:952


        lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            autoDA7F0632_ae = lv_targetCount;
            autoDA7F0632_var = 1;

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/pulnar03.sc2map/MapScript.galaxy:875

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

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

        if ((libLotv_gf_DifficultyValueInt2(0, 0, 1, 1) == 1)) {
            lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
            if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
                auto7560E7B0_ae = lv_targetCount;
                auto7560E7B0_var = 1;

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/paiur06.sc2mapMapScript.galaxy:792


    // Implementation
    if ((UnitGetPropertyFixed(lp_blinkStalker, c_unitPropShields, c_unitPropCurrent) == 0.0) && (UnitCheckAbilCmdState(lp_blinkStalker, AbilityCommand("BlinkShieldRestore", 0), c_cmdStateCooldown) == false)) {
        lv_targetPoint = PointWithOffsetPolar(UnitGetPosition(lp_blinkStalker), -2.0, UnitGetFacing(lp_blinkStalker));
        libNtve_gf_AICast(lp_blinkStalker, OrderTargetingPoint(AbilityCommand("BlinkShieldRestore", 0), lv_targetPoint));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:838

    lv_enemyGroup10 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_karax, 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 ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("PhaseCannon", 0), c_cmdStateCooldown) == false)) {
            lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_karax), 4.0, UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive)));
            libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:842

            libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));
        }
        else if ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("Reclamation", 0), c_cmdStateCooldown) == false)) {
            auto70237CCA_g = lv_enemyGroup10;
            auto70237CCA_u = UnitGroupCount(auto70237CCA_g, c_unitCountAll);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:885

    }
    if ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitHasBehavior2(lp_alarak, "AlarakDeadlyCharging") == false) && (UnitCheckAbilCmdState(lp_alarak, AbilityCommand("AlarakKnockback", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_alarak), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak)))) <= 4.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:911

    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_vorazun, 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 ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowFury", 0), c_cmdStateCooldown) == true) && (UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowDash", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_vorazun), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)))) <= 5.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:911

    lv_enemyGroup8 = libVCMI_gf_AITacticalEnemiesWithinRange(lp_vorazun, 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 ((UnitGroupCount(lv_enemyGroup8, c_unitCountAlive) > 0)) {
        if ((UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowFury", 0), c_cmdStateCooldown) == true) && (UnitCheckAbilCmdState(lp_vorazun, AbilityCommand("VorazunShadowDash", 0), c_cmdStateCooldown) == false)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lp_vorazun), UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)))) <= 5.0)) {
                lv_targetPoint = UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:441

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:454


        lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            auto3AA63390_g = lv_enemyGroup9;
            auto3AA63390_u = UnitGroupCount(auto3AA63390_g, c_unitCountAll);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:991

    while ((UnitIsAlive(lp_hybrid) == true) && (libVCMI_gf_GameIsOver() == false)) {
        lv_enemyGroup5 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 5.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("ConsumeDNA", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup5, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup5)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:999


        lv_targetCount = UnitGroupCount(lv_enemyGroup5, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridFAoEStun", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            libNtve_gf_AICast(lp_hybrid, Order(AbilityCommand("HybridFAoEStun", 0)));
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:1039

    while ((UnitIsAlive(lp_hybrid) == true) && (libVCMI_gf_GameIsOver() == false)) {
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridGeneralPhaseShift", 0), c_cmdStateCooldown) == false)) {
            auto641DF5B9_g = lv_enemyGroup9;
            auto641DF5B9_u = UnitGroupCount(auto641DF5B9_g, c_unitCountAll);

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/ptaldarim02.sc2mapMapScript.galaxy:939

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2mapMapScript.galaxy:952


        lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
            autoDA7F0632_ae = lv_targetCount;
            autoDA7F0632_var = 1;

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/pulnar03.sc2mapMapScript.galaxy:875

        lv_lastAttacker = AILastAttacker(lp_hybrid);
        lv_enemyGroup9 = UnitGroupAlliance(UnitGetOwner(lp_hybrid), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_hybrid), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0);
        if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), c_cmdStateCooldown) == false)) {
            if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
                libNtve_gf_AICast(lp_hybrid, OrderTargetingUnit(AbilityCommand("HybridDominatorVoidPlasmaBlast", 0), gf_ToughestUnitinUnitGroup(lv_enemyGroup9)));

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

        if ((libLotv_gf_DifficultyValueInt2(0, 0, 1, 1) == 1)) {
            lv_targetCount = UnitGroupCount(lv_enemyGroup9, c_unitCountAlive);
            if ((UnitCheckAbilCmdState(lp_hybrid, AbilityCommand("HybridDominatorVoidPsiStorm", 0), c_cmdStateCooldown) == false) && (lv_targetCount >= 3)) {
                auto7560E7B0_ae = lv_targetCount;
                auto7560E7B0_var = 1;

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/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1614

    autoCastOrd = AICreateOrder(player, c_AB_LockOn, 0);
    autoCastCmd = OrderGetAbilityCommand (autoCastOrd);
    if (UnitCheckAbilCmdState(aiUnit, autoCastCmd, c_cmdStateIsAutoCast) == airOnly) {
        autoCastOrd = OrderSetAutoCast(autoCastCmd, !airOnly);
        if (UnitOrderIsValid(aiUnit, autoCastOrd)) {

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/LibCOMU.galaxy:13317

                    lv_commandIndex = 0;
                    for ( ; ( (auto0A9E56CE_ai >= 0 && lv_commandIndex <= auto0A9E56CE_ae) || (auto0A9E56CE_ai < 0 && lv_commandIndex >= auto0A9E56CE_ae) ) ; lv_commandIndex += auto0A9E56CE_ai ) {
                        if ((AbilityCommand(lv_structureAbility, lv_commandIndex) != null) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateDisabled) == false) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateHidden) == false) && (UnitOrderIsValid(lv_indexStructure, Order(AbilityCommand(lv_structureAbility, lv_commandIndex))) == true)) {
                            lv_commandCount += 1;
                        }

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

                    lv_commandIndex = 0;
                    for ( ; ( (auto0A9E56CE_ai >= 0 && lv_commandIndex <= auto0A9E56CE_ae) || (auto0A9E56CE_ai < 0 && lv_commandIndex >= auto0A9E56CE_ae) ) ; lv_commandIndex += auto0A9E56CE_ai ) {
                        if ((AbilityCommand(lv_structureAbility, lv_commandIndex) != null) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateDisabled) == false) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateHidden) == false) && (UnitOrderIsValid(lv_indexStructure, Order(AbilityCommand(lv_structureAbility, lv_commandIndex))) == true)) {
                            lv_commandCount += 1;
                        }

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

                    lv_commandIndex = 0;
                    for ( ; ( (autoE331E288_ai >= 0 && lv_commandIndex <= autoE331E288_ae) || (autoE331E288_ai < 0 && lv_commandIndex >= autoE331E288_ae) ) ; lv_commandIndex += autoE331E288_ai ) {
                        if ((AbilityCommand(lv_structureAbility, lv_commandIndex) != null) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateDisabled) == false) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateHidden) == false) && (UnitOrderIsValid(lv_indexStructure, Order(AbilityCommand(lv_structureAbility, lv_commandIndex))) == true)) {
                            lv_commandCount -= 1;
                            if ((lv_commandCount == 0)) {

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

                    lv_commandIndex = 0;
                    for ( ; ( (autoE331E288_ai >= 0 && lv_commandIndex <= autoE331E288_ae) || (autoE331E288_ai < 0 && lv_commandIndex >= autoE331E288_ae) ) ; lv_commandIndex += autoE331E288_ai ) {
                        if ((AbilityCommand(lv_structureAbility, lv_commandIndex) != null) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateDisabled) == false) && (UnitCheckAbilCmdState(lv_indexStructure, AbilityCommand(lv_structureAbility, lv_commandIndex), c_cmdStateHidden) == false) && (UnitOrderIsValid(lv_indexStructure, Order(AbilityCommand(lv_structureAbility, lv_commandIndex))) == true)) {
                            lv_commandCount -= 1;
                            if ((lv_commandCount == 0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:367

    ord = AICreateOrder(player, c_AB_Repair, 0);
    repaircmd = OrderGetAbilityCommand (ord);
    if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
        ord = OrderSetAutoCast(repaircmd, false);
        if (UnitOrderIsValid(aiUnit, ord)) {

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1561

    autoCastOrd = AICreateOrder(player, c_AB_LockOn, 0);
    autoCastCmd = OrderGetAbilityCommand (autoCastOrd);
    if (UnitCheckAbilCmdState(aiUnit, autoCastCmd, c_cmdStateIsAutoCast) == airOnly) {
        autoCastOrd = OrderSetAutoCast(autoCastCmd, !airOnly);
        if (UnitOrderIsValid(aiUnit, autoCastOrd)) {

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)) {