# Ability Of Ability Command

Grammar — Ability of abilityCommand
FlagsNative | Function

Returns the ability being used for an ability command. An ability command is the combination of an ability and an index for a command within that ability.

# Arguments

  • abilcmd — Ability Command

Returns — string<gamelink::Abil>

native string AbilityCommandGetAbility(abilcmd inAbilCmd);

Category: Order / Ability Commands

# Examples

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


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinBarrage || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3678

    for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
        lv_order = UnitOrder(lp_unit, lv_orderIndex);
        if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
            return OrderGetTargetPoint(lv_order);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3678

    for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
        lv_order = UnitOrder(lp_unit, lv_orderIndex);
        if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
            return OrderGetTargetPoint(lv_order);
        }

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


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinBarrage || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1625

    lv_index = 0;
    for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
        if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
            return true;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:1625

    lv_index = 0;
    for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
        if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
            return true;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4662

    // Automatic Variable Declarations
    // Implementation
    if ((UnitAbilityExists(lp_hero, AbilityCommandGetAbility(lp_abilityCommand)) == true)) {
        UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll);
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5589


    // Implementation
    if ((AbilityCommandGetAbility(UserDataGetAbilCmd("CampaignPerk", lp_ability, "AbilityCommand", 1)) != null)) {
        return TechTreeAbilityIsAllowed(1, UserDataGetAbilCmd("CampaignPerk", lp_ability, "AbilityCommand", 1));
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5719

    // Automatic Variable Declarations
    // Implementation
    return libVoiC_gf_CostOfAbility(AbilityCommandGetAbility(UserDataGetAbilCmd("CampaignPerk", lp_campaignPerk, "AbilityCommand", 1)), "Energy");
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8162

    // Automatic Variable Declarations
    // Implementation
    libVoiC_gf_PC_StatRecordMiscAbilitySingle(AbilityCommandGetAbility(AbilityCommand("Blink", 0)));
    libVoiC_gf_PC_StatRecordMiscAbilitySingle(AbilityCommandGetAbility(AbilityCommand("TimeWarp", 0)));
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8163

    // Implementation
    libVoiC_gf_PC_StatRecordMiscAbilitySingle(AbilityCommandGetAbility(AbilityCommand("Blink", 0)));
    libVoiC_gf_PC_StatRecordMiscAbilitySingle(AbilityCommandGetAbility(AbilityCommand("TimeWarp", 0)));
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10900


    if (((EventUnitAbility() == AbilityCommand("Blink", 0)) || (EventUnitAbility() == AbilityCommand("TimeWarp", 0)))) {
        DataTableSetInt(true, ("AbilUsed_" + (AbilityCommandGetAbility(EventUnitAbility()))), (DataTableGetInt(true, ("AbilUsed_" + (AbilityCommandGetAbility(EventUnitAbility()))))+1));
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10900


    if (((EventUnitAbility() == AbilityCommand("Blink", 0)) || (EventUnitAbility() == AbilityCommand("TimeWarp", 0)))) {
        DataTableSetInt(true, ("AbilUsed_" + (AbilityCommandGetAbility(EventUnitAbility()))), (DataTableGetInt(true, ("AbilUsed_" + (AbilityCommandGetAbility(EventUnitAbility()))))+1));
    }

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/NativeLib.galaxy:5412

    // Automatic Variable Declarations
    // Implementation
    UnitSetInfoButtonTooltip(lp_unit, ((AbilityCommandGetAbility(lp_key)) + "," + IntToString(AbilityCommandGetCommand(lp_key))), lp_text);
}

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

    // Automatic Variable Declarations
    // Implementation
    UnitClearInfoButtonTooltip(lp_unit, ((AbilityCommandGetAbility(lp_abilcmd)) + "," + IntToString(AbilityCommandGetCommand(lp_abilcmd))));
}

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:277

//--------------------------------------------------------------------------------------------------
bool AIIsAttackOrder (order o) {
    return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Attack, true);
}

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:284

//--------------------------------------------------------------------------------------------------
bool AIIsMoveOrder (order o) {
    return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Move, true);
}

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:161


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_Bombardment || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("BarbarianShotofFury", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("BarbarianShotofFury", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("BarbarianAncientSpear", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("BarbarianAncientSpear", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("L90ETCPowerslide", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

        }

        if (!((AbilityCommandGetAbility(AbilityCommand("L90ETCPowerslide", 0)) != AbilityCommandGetAbility(EventUnitAbility())))) {
            return false;
        }

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

    for ( ; ( (auto98ECC35E_ai >= 0 && lv_i <= auto98ECC35E_ae) || (auto98ECC35E_ai < 0 && lv_i >= auto98ECC35E_ae) ) ; lv_i += auto98ECC35E_ai ) {
        lv_abilLink = libGame_gv_players[lv_heroIndex].lv_heroData.lv_abilities[lv_i].lv_ability;
        if ((lv_abilLink == AbilityCommandGetAbility(EventUnitAbility()))) {
            UnitBehaviorAdd(lv_hero, "TalentBucketFollowThrough", lv_hero, 1);
            break;

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

            lv_unitTypeAsString = (UnitGetType(libGame_gv_players[lv_effectingPlayer].lv_heroUnit));
            if ((lv_effectingUnitType != UnitGetType(libGame_gv_players[lv_effectingPlayer].lv_heroUnit)) && (((UnitTypeTestAttribute(lv_effectingUnitType, c_unitAttributeSummoned) == true) && (CatalogFieldValueGet(c_gameCatalogUnit, lv_effectingUnitType, "LeaderAlias", c_playerAny) != lv_unitTypeAsString)) || ((UnitTypeTestAttribute(lv_effectingUnitType, c_unitAttributeSummoned) == false) && (CatalogFieldValueGet(c_gameCatalogUnit, lv_effectingUnitType, "LeaderAlias", c_playerAny) == lv_unitTypeAsString)))) {
                lv_effectHistoryEntryAbility = AbilityCommandGetAbility(TechTreeUnitProducedAbilCmd(lv_effectingUnitType, 0));
                if ((lv_sourceButton == null)) {
                    lv_sourceButton = (CatalogFieldValueGet(c_gameCatalogAbil, lv_effectHistoryEntryAbility, "CmdButtonArray[" + IntToString(0) + "].DefaultButtonFace", c_playerAny));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:4499

    }

    libSprt_gv_soundRepeatCurrentAbility = AbilityCommandGetAbility(EventUnitAbility());
    libSprt_gv_soundRepeatCasterUnit = EventUnit();
    libSprt_gv_soundRepeatTargetUnit = EventUnit();

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:1425

            UnitBehaviorRemove(lv_dVaUnit, "DVaMechWeaponDisableWeaponScan", 1);
            libHDVA_gv_heroDVaCurrentAttackTarget[lv_dVaPlayer] = null;
            while ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lv_dVaUnit, 0))) == "attack") && (lv_targetPoint == libHDVA_gv_heroDVaAttackTargetPoint[lv_dVaPlayer])) {
                Wait(0.125, c_timeGame);
            }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:553

            UnitIssueOrder(lp_attachingUnit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(gv_xanthos), lp_offsetDistance, (UnitGetFacing(gv_xanthos) + lp_offsetAngle))), c_orderQueueReplace);
            UnitSetFacing(lp_attachingUnit, UnitGetFacing(gv_xanthos), 0.0);
            if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(gv_xanthos, 0))) == "NovaXanthosJump")) {
                libNtve_gf_MakeUnitInvulnerable(lp_attachingUnit, true);
            }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:624

            }
            UnitSetFacing(lp_attachingUnit, UnitGetFacing(gv_xanthos), 0.0);
            if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(gv_xanthos, 0))) == "NovaXanthosJump")) {
                libNtve_gf_MakeUnitInvulnerable(lp_attachingUnit, true);
            }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2mapMapScript.galaxy:553

            UnitIssueOrder(lp_attachingUnit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(gv_xanthos), lp_offsetDistance, (UnitGetFacing(gv_xanthos) + lp_offsetAngle))), c_orderQueueReplace);
            UnitSetFacing(lp_attachingUnit, UnitGetFacing(gv_xanthos), 0.0);
            if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(gv_xanthos, 0))) == "NovaXanthosJump")) {
                libNtve_gf_MakeUnitInvulnerable(lp_attachingUnit, true);
            }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2mapMapScript.galaxy:624

            }
            UnitSetFacing(lp_attachingUnit, UnitGetFacing(gv_xanthos), 0.0);
            if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(gv_xanthos, 0))) == "NovaXanthosJump")) {
                libNtve_gf_MakeUnitInvulnerable(lp_attachingUnit, true);
            }

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_link = AbilityCommandGetAbility(lp_abilityCommand);
    lv_index = AbilityCommandGetCommand(lp_abilityCommand);

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, AbilityCommandGetAbility(lp_cmd), "Cost[" + IntToString(0) + "].Cooldown.Link", lp_player);

    // Implementation

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

            for ( ; ( (auto3D8DE2E4_ai >= 0 && lv_i <= auto3D8DE2E4_ae) || (auto3D8DE2E4_ai < 0 && lv_i >= auto3D8DE2E4_ae) ) ; lv_i += auto3D8DE2E4_ai ) {
                lv_cmd = TechTreeUnitProducedAbilCmd(lv_uT, lv_i);
                lv_abil = AbilityCommandGetAbility(lv_cmd);
                lv_abilIndex = AbilityCommandGetCommand(lv_cmd);
                CatalogFieldValueSet(c_gameCatalogAbil, lv_abil, "InfoArray[" + IntToString(lv_abilIndex) + "].Button.Requirements", lp_p, (lv_requirement));

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

    }

    if ((libCOMI_gf_HeroCanSpendSkillPoint(lv_u, AbilityCommandGetAbility(EventUnitAbility())) == true)) {
        ActorSend(libNtve_gf_MainActorofUnit(lv_u), "HaloStart");
        UISetButtonFaceHighlighted(PlayerGroupSingle(UnitGetOwner(lv_u)), "DehakaLearnAbilities", true);

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

    // Conditions
    if (testConds) {
        if (!((AbilityCommandGetAbility(OrderGetAbilityCommand(EventUnitOrder())) == "DehakaLearn"))) {
            return false;
        }

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

    lv_caster = libCOMI_gf_CM_PlayerGetGlobalCaster(EventPlayer());
    lv_cmd = AbilityCommand("SOAThermalLanceActivate", 0);
    lv_abil = AbilityCommandGetAbility(lv_cmd);

    // Conditions

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

    lv_caster = libCOMI_gf_CM_PlayerGetGlobalCaster(EventPlayer());
    lv_cmd = AbilityCommand("HornerAirFleetActivate", 0);
    lv_abil = AbilityCommandGetAbility(lv_cmd);

    // Conditions

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

    lv_caster = libCOMI_gf_CM_PlayerGetGlobalCaster(EventPlayer());
    lv_cmd = AbilityCommand("NovaGriffinBombingRunActivate", 0);
    lv_abil = AbilityCommandGetAbility(lv_cmd);

    // Conditions

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

    }

    if ((libCOMI_gf_HeroCanSpendSkillPoint(EventUnit(), AbilityCommandGetAbility(EventUnitAbility())) == false)) {
        libNtve_gf_StopTimer(libCOMI_gv_cM_DehakaVOLearnReminderTimer);
    }

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_abil = AbilityCommandGetAbility(OrderGetAbilityCommand(lp_order));

    // Implementation

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3374

            TechTreeAbilityAllow(lp_player, UserDataGetAbilCmd("CampaignPerk", lp_perk, "AbilityCommand", lv_indexTech), lv_allowDisallow);
            if ((libCOOC_gv_cC_DebugTechSuperSpam == true)) {
                TextExpressionSetToken("Param/Expression/lib_COOC_94AB0648", "A", StringToText((AbilityCommandGetAbility(UserDataGetAbilCmd("CampaignPerk", lp_perk, "AbilityCommand", lv_indexTech)))));
                TextExpressionSetToken("Param/Expression/lib_COOC_94AB0648", "B", libNtve_gf_ConvertBooleanToText(lv_allowDisallow));
                TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COOC_94AB0648"), true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4271

        if ((lp_enableDisable == true)) {
            if ((libCOOC_gv_cC_DebugTechSuperSpam == true)) {
                TextExpressionSetToken("Param/Expression/lib_COOC_0692D816", "A", StringToText((AbilityCommandGetAbility(StringToAbilCmd(libCOOC_gf_CC_CatalogGetFieldArrayValue(lp_catalog, lp_entry, lv_aField, lv_index, lp_player))))));
                TextExpressionSetToken("Param/Expression/lib_COOC_0692D816", "B", libNtve_gf_ConvertBooleanToText(true));
                TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COOC_0692D816"), true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4280

        else {
            if ((libCOOC_gv_cC_DebugTechSuperSpam == true)) {
                TextExpressionSetToken("Param/Expression/lib_COOC_3030B119", "A", StringToText((AbilityCommandGetAbility(StringToAbilCmd(libCOOC_gf_CC_CatalogGetFieldArrayValue(lp_catalog, lp_entry, lv_aField, lv_index, lp_player))))));
                TextExpressionSetToken("Param/Expression/lib_COOC_3030B119", "B", libNtve_gf_ConvertBooleanToText(false));
                TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COOC_3030B119"), true);

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


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinBarrage || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

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


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinMKIIBarrage || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:277

//--------------------------------------------------------------------------------------------------
bool AIIsAttackOrder (order o) {
    return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Attack, true);
}

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:284

//--------------------------------------------------------------------------------------------------
bool AIIsMoveOrder (order o) {
    return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Move, true);
}

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1319

	
	curAbilCmd = OrderGetAbilityCommand(curOrd);
	if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OracleStasisWard 
		|| AbilityCommandGetCommand(curAbilCmd) != 0) {
			return;

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


    curAbilCmd = OrderGetAbilityCommand(curOrd);
    if (AbilityCommandGetAbility(curAbilCmd) != c_AB_Bombardment || 
        AbilityCommandGetCommand(curAbilCmd) != 0) {
            return;

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:3527

    // Automatic Variable Declarations
    // Implementation
    if ((UnitAbilityExists(lp_hero, AbilityCommandGetAbility(lp_abilityCommand)) == true)) {
        UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll);
    }

mods/warcoop/legends/jainaproudmoore.sc2modbase.sc2data/LibLJai.galaxy:29

    // Conditions
    if (testConds) {
        if (!((CatalogFieldValueGet(c_gameCatalogAbil, AbilityCommandGetAbility(EventUnitAbility()), "AbilityCategories[" + IntToString(0) + "]", c_playerAny) == "1"))) {
            return false;
        }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1533

    UnitCreateEffectUnit(lv_u, "CancelAttackOrdersWar3Active", lv_u);
    if ((libGAw3_gf_UnitIsChannelling(lv_u) == true)) {
        UnitIssueOrder(lv_u, Order(AbilityCommand(AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lv_u, 0))), 1)), c_orderQueueReplace);
    }