# Stack Count Of Behavior On Unit

Grammar — Stack count of behavior on unit
FlagsNative | Function

Returns the stack count of a behavior on a unit.

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior

Returns — int

native int UnitBehaviorCount(
	unit inUnit,
	string inBehavior,
);

Category: Behavior / Basic

# Examples

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_count = UnitBehaviorCount(lp_inUnit, lp_inBehavior);
    lv_delta = AbsI((lp_inCount - lv_count));

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:246

    }

    if (UnitBehaviorCount(aiUnit, c_BF_GuardianShield) > 0) {
        return false;
    }

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:496

        unitCount = unitCount - 1;

        if (UnitBehaviorCount(unitToCheck, c_BF_CorePhotonOvercharge) > 0) {
            continue;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1324

        unitCount = unitCount - 1;

        if (UnitBehaviorCount(unitToCheck, c_BF_OracleRevelation) > 0) {
            continue;
        }

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:5864

        }

        if ((UnitIsAlive(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit) == true) && (libStEx_gf_PlayerIsInCombat(libStEx_gv_pLAYER_01_USER) == false) && (libGame_gf_MountEnabled(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit) == true) && ((UnitHasBehavior2(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == false) || (UnitBehaviorEnabled(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == false) || (UnitBehaviorCount(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == 0))) {
            if ((lv_originalLoc == null)) {
                lv_originalLoc = UnitGetPosition(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:5864

        }

        if ((UnitIsAlive(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit) == true) && (libStEx_gf_PlayerIsInCombat(libStEx_gv_pLAYER_01_USER) == false) && (libGame_gf_MountEnabled(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit) == true) && ((UnitHasBehavior2(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == false) || (UnitBehaviorEnabled(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == false) || (UnitBehaviorCount(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit, "Mounted") == 0))) {
            if ((lv_originalLoc == null)) {
                lv_originalLoc = UnitGetPosition(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit);

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:327

                libAMCT_gf_ARMSkyTempleClearTempleTargetRevealers(lp_templeIndex, 6.0);
                lv_target = libAMCT_gf_ARMSkyTempleNextTempleTarget(lp_templeIndex);
                if ((UnitIsAlive(lv_target) == true) && (UnitBehaviorCount(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_beacon, "DisableBeaconBuff") == 0)) {
                    libAMCT_gf_ARMSkyTempleTempleAttackTarget(lp_templeIndex, lv_target);
                }

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:951


    // Implementation
    lv_GoldCount = UnitBehaviorCount(lp_heroUnit, "MapMechanicStack");
    return FixedToInt(lv_GoldCount);
}

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:1002

            lv_unitGroupUnit = UnitGroupUnitFromEnd(auto6802BC0D_g, auto6802BC0D_u);
            if (lv_unitGroupUnit == null) { break; }
            lv_tempCount += UnitBehaviorCount(lv_unitGroupUnit, "MapMechanicStack");
        }
        lv_finalCount = lv_tempCount;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:402

            lv_itBehaviorIterator = 1;
            for ( ; ( (autoAC7BA3F2_ai >= 0 && lv_itBehaviorIterator <= autoAC7BA3F2_ae) || (autoAC7BA3F2_ai < 0 && lv_itBehaviorIterator >= autoAC7BA3F2_ae) ) ; lv_itBehaviorIterator += autoAC7BA3F2_ai ) {
                if ((UnitBehaviorCount(libGame_gv_players[lv_itPlayerIterator].lv_heroUnit, libPVEB_gv_pvEPickupPickupsCarryBehavior[lv_itBehaviorIterator]) == 1)) {
                    libPVEB_gv_pvEPickupHeldPickups[lv_itPlayerIterator] = libPVEB_gv_pvEPickupPickupsCarryBehavior[lv_itBehaviorIterator];
                    break;

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:659

            lv_itBehaviorIterator = 1;
            for ( ; ( (autoAC7BA3F2_ai >= 0 && lv_itBehaviorIterator <= autoAC7BA3F2_ae) || (autoAC7BA3F2_ai < 0 && lv_itBehaviorIterator >= autoAC7BA3F2_ae) ) ; lv_itBehaviorIterator += autoAC7BA3F2_ai ) {
                if ((UnitBehaviorCount(libGame_gv_players[lv_itPlayerIterator].lv_heroUnit, libPVEM_gv_pvEPickupsCarryBehavior[lv_itBehaviorIterator]) == 1)) {
                    libPVEM_gv_pvEPickupsHeldPickups[lv_itPlayerIterator] = libPVEM_gv_pvEPickupsCarryBehavior[lv_itBehaviorIterator];
                    break;

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1525


        if ((UnitHasBehavior2(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost") == true)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost"));

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1526

        if ((UnitHasBehavior2(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost") == true)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost"));
            continue;

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1527

            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost")));
            libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = (lv_maxSpeed + UnitBehaviorCount(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSpeedBoost"));
            continue;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:2711

        }

        if (!((UnitBehaviorCount(lv_destroyedTowerUnit, "TownCannonTowerInvulnerable") >= 1))) {
            return false;
        }

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

    // Implementation
    lv_player = UnitGetOwner(lp_unit);
    UnitBehaviorAdd(lp_unit, "BucketOverdriveSummonedUnit", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "BucketOverdrive"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerCarry", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerCarry"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerStackSummoned", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerStack"));

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

    lv_player = UnitGetOwner(lp_unit);
    UnitBehaviorAdd(lp_unit, "BucketOverdriveSummonedUnit", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "BucketOverdrive"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerCarry", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerCarry"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerStackSummoned", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerStack"));
}

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

    UnitBehaviorAdd(lp_unit, "BucketOverdriveSummonedUnit", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "BucketOverdrive"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerCarry", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerCarry"));
    UnitBehaviorAdd(lp_unit, "TalentGatheringPowerStackSummoned", libGame_gv_players[lv_player].lv_heroUnit, UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "TalentGatheringPowerStack"));
}

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

            }

            if ((UnitBehaviorCount(lp_purifierBeam, "ArtanisSpearofAdunPurifierBeamPrimed") == 0)) {
                lv_purifierBeamState = libGDHL_ge_SpearofAdunPurifierBeamState_Active;
            }

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

    // Automatic Variable Declarations
    // Implementation
    if (((UnitTestState(lp_owningUnit, c_unitStateCloaked) == true) || (UnitBehaviorCount(lp_owningUnit, "ShrubStatusController") == 1)) && (UnitHasBehavior2(lp_serpentUnit, "CloudSerpentCloakingBehavior") == false) && (UnitHasBehavior2(lp_owningUnit, "AttackReveal") == false)) {
        libNtve_gf_SendActorMessageToUnit(lp_serpentUnit, "Signal SerpentHide");
        UnitBehaviorAdd(lp_serpentUnit, "CloudSerpentCloakingBehavior", lp_serpentUnit, 1);

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

    }
    else {
        if (((UnitBehaviorCount(lp_owningUnit, "ShrubStatusController") == 0) || (UnitHasBehavior2(lp_owningUnit, "AttackReveal") == true)) && (UnitTestState(lp_owningUnit, c_unitStateCloaked) == false) && (UnitHasBehavior2(lp_serpentUnit, "CloudSerpentCloakingBehavior") == true)) {
            libNtve_gf_SendActorMessageToUnit(lp_serpentUnit, "Signal SerpentShow");
            UnitBehaviorRemove(lp_serpentUnit, "CloudSerpentCloakingBehavior", 1);

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

            UnitCreateEffectUnit(auto332CD45C_var, "LostVikingsVikingBriberyIncreaseVisualTokenCounter", auto332CD45C_var);
        }
        PlayerScoreValueSetFromInt(lp_killingPlayer, "LostVikingsVikingBriberyStackScore", UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"));
        if ((ModI(UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"), 40) == 0)) {
            PlayerAddChargeUsed(lp_killingPlayer, "Abil/LostVikingsVikingBribery", -1.0);

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

        }
        PlayerScoreValueSetFromInt(lp_killingPlayer, "LostVikingsVikingBriberyStackScore", UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"));
        if ((ModI(UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"), 40) == 0)) {
            PlayerAddChargeUsed(lp_killingPlayer, "Abil/LostVikingsVikingBribery", -1.0);
        }

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

        UnitBehaviorRemove(lv_itUnit, lv_downedBehavior, 1);
    }
    if ((UnitBehaviorCount(lp_viking, "LostVikingsCheckpointReachedCarry") == 1)) {
        lv_cairn = UnitGroupUnit(UnitGroup("LostVikingsPlayAgainCairn", lv_lVPlayer, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), 1);
        if ((lv_cairn != null)) {

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

    }

    if ((UnitBehaviorCount(lv_misha, "RexxarMishaFollowFollow") > 0) && (lv_currentState != libGDHL_ge_MishaState_Following) && (lv_currentState != libGDHL_ge_MishaState_Pursuing)) {
        lv_currentState = libGDHL_ge_MishaState_Following;
        lv_autoAquired = false;

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

    // Implementation
    lv_behaviorDuration = UnitBehaviorDuration(lp_unit, lp_cCBehavior);
    if ((UnitBehaviorCount(lp_unit, "75PercentCCReduction") >= 1)) {
        lv_percentReduction = libCore_gv_talents_RelentlessCCReduction75_C;
    }

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

    }
    else {
        if (((UnitBehaviorCount(lp_unit, "50PercentCCReduction") >= 1) || (UnitBehaviorCount(lp_unit, "BarbarianWrathoftheBerserkerBase") == 1) || ((UnitBehaviorCount(lp_unit, "IllidanMetamorphosis") == 1) && (UnitBehaviorCount(lp_unit, "IllidanMetamorphosisDemonicFormCarryBehavior") == 1)))) {
            lv_percentReduction = libCore_gv_talents_RelentlessCCReduction50_C;
        }

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

    }
    else {
        if (((UnitBehaviorCount(lp_unit, "50PercentCCReduction") >= 1) || (UnitBehaviorCount(lp_unit, "BarbarianWrathoftheBerserkerBase") == 1) || ((UnitBehaviorCount(lp_unit, "IllidanMetamorphosis") == 1) && (UnitBehaviorCount(lp_unit, "IllidanMetamorphosisDemonicFormCarryBehavior") == 1)))) {
            lv_percentReduction = libCore_gv_talents_RelentlessCCReduction50_C;
        }

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

    }
    else {
        if (((UnitBehaviorCount(lp_unit, "50PercentCCReduction") >= 1) || (UnitBehaviorCount(lp_unit, "BarbarianWrathoftheBerserkerBase") == 1) || ((UnitBehaviorCount(lp_unit, "IllidanMetamorphosis") == 1) && (UnitBehaviorCount(lp_unit, "IllidanMetamorphosisDemonicFormCarryBehavior") == 1)))) {
            lv_percentReduction = libCore_gv_talents_RelentlessCCReduction50_C;
        }

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

    }
    else {
        if (((UnitBehaviorCount(lp_unit, "50PercentCCReduction") >= 1) || (UnitBehaviorCount(lp_unit, "BarbarianWrathoftheBerserkerBase") == 1) || ((UnitBehaviorCount(lp_unit, "IllidanMetamorphosis") == 1) && (UnitBehaviorCount(lp_unit, "IllidanMetamorphosisDemonicFormCarryBehavior") == 1)))) {
            lv_percentReduction = libCore_gv_talents_RelentlessCCReduction50_C;
        }

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


    Wait(5.0, c_timeGame);
    if ((UnitIsValid(lp_unit) == true) && (UnitIsAlive(lp_unit) == true) && (UnitBehaviorCount(lp_unit, "Dead") == 0) && (UnitGroupHasUnit(libGame_gv_players[lp_player].lv_heroUnitGroup, lp_unit) == true) && (UnitGroupHasUnit(libGame_gv_escapeTrackingHeroReducedtoLowHealthUnitGroup[lp_player], lp_unit) == true)) {
        if ((libGame_gv_teamfightTrackingNearbyAllyCount[lp_player] >= (libGame_gv_teamfightTrackingCount - 1)) && (libGame_gv_teamfightTrackingNearbyEnemyCount[lp_player] >= libGame_gv_teamfightTrackingCount) && (lv_escapedinaTeamFight == true)) {
            libGame_gf_AddtoAwardValue(lp_player, 1.0, libGame_ge_SecondaryAwards_Daredevil);

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

    lv_hero = libGame_gv_players[lv_player].lv_heroUnit;
    lv_heroIndex = libGame_gv_players[lv_player].lv_heroIndex;
    if ((UnitBehaviorCount(lv_hero, "BucketOverdrive") == 1)) {
        lv_percentageModifier += libCore_gv_talents_BucketOverdriveManaCostIncreasePercent_C;
    }

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

    }

    if ((UnitBehaviorCount(lv_hero, "0ManaCostBuff") == 1)) {
        lv_percentageModifier -= libCore_gv_talents_0ManaCostBuffMod_C;
    }

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

    UnitSetPropertyFixed(lv_heroUnit, c_unitPropEnergyPercent, 100.0);
    UnitBehaviorAdd(lv_heroUnit, "Dead", lv_heroUnit, 1);
    if ((UnitBehaviorCount(EventUnit(), "NoDeadMechanics") == 0)) {
        UnitBehaviorAdd(lv_heroUnit, "DeadMechanics", lv_heroUnit, 1);
    }

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

        lv_itUnit = UnitGroupUnitFromEnd(autoED19B100_g, autoED19B100_u);
        if (lv_itUnit == null) { break; }
        if ((UnitBehaviorCount(lv_itUnit, "SpecialCaseNPCTakedownParticipant") == 1) && (libNtve_gf_PlayerIsEnemy(UnitGetOwner(lv_itUnit), UnitGetOwner(lp_killedUnit), libNtve_ge_PlayerRelation_Enemy) == true)) {
            libGame_gf_SendEventSpecialCaseUnitParticipatedInNPCTakedown(UnitGetOwner(lv_itUnit), lp_killedUnit);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2705

        lv_behaviorArray[lv_i] = "Ability" + IntToString(lv_i + 1);
    }
    return UnitBehaviorCount(lp_heroUnit, lv_behaviorArray[lp_abilIndex]);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:3120


        if ((UnitIsAlive(libGame_gv_players[1].lv_heroUnit) == true) && (libStEx_gf_PlayerIsInCombat(1) == false) && (libStEx_gv_sE_TrainingModeTipDisplaying == false)) {
            if ((UnitHasBehavior2(libGame_gv_players[1].lv_heroUnit, "ShrubStatusController") == true) && (UnitBehaviorEnabled(libGame_gv_players[1].lv_heroUnit, "ShrubStatusController") == true) && (UnitBehaviorCount(libGame_gv_players[1].lv_heroUnit, "ShrubStatusController") > 0)) {
                libStEx_gf_SE_TrainingModeTipDisplay(libStEx_ge_SE_TrainingModeTips_Bushes);
                libStEx_gf_SE_TrainingModeTipSetDisplayed(libStEx_ge_SE_TrainingModeTips_Bushes);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:3758

        }

        if ((UnitIsAlive(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit) == true) && (libStEx_gf_PlayerIsInCombat(1) == false) && (libGame_gf_MountEnabled(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit) == true) && ((UnitHasBehavior2(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit, "Mounted") == false) || (UnitBehaviorEnabled(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit, "Mounted") == false) || (UnitBehaviorCount(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit, "Mounted") == 0))) {
            if ((lv_originalLoc == null)) {
                lv_originalLoc = UnitGetPosition(libGame_gv_players[libStEx_gv_sE_Player].lv_heroUnit);

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

            StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
            StatEventAddDataString(StatEventLastCreated(), "Hero", (UnitGetType(libGame_gv_players[lv_player].lv_heroUnit)));
            StatEventAddDataInt(StatEventLastCreated(), "Stack Count", UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "RegenerationMaster"));
            StatEventSend(StatEventLastCreated());
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3769

    }
    else {
        while (((UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "StitchesHooked") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "VoidPrisonDisplay") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleImpaledTarget") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleFinalStun") > 0))) {
            Wait(0.0625, c_timeGame);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3769

    }
    else {
        while (((UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "StitchesHooked") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "VoidPrisonDisplay") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleImpaledTarget") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleFinalStun") > 0))) {
            Wait(0.0625, c_timeGame);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3769

    }
    else {
        while (((UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "StitchesHooked") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "VoidPrisonDisplay") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleImpaledTarget") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleFinalStun") > 0))) {
            Wait(0.0625, c_timeGame);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3769

    }
    else {
        while (((UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "StitchesHooked") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "VoidPrisonDisplay") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleImpaledTarget") > 0) || (UnitBehaviorCount(libGame_gv_players[lp_player].lv_heroUnit, "AmazonValkyrieImpaleFinalStun") > 0))) {
            Wait(0.0625, c_timeGame);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:13313

        }

        if (!((UnitBehaviorCount(EventUnit(), "HeroGenericHasNoStatusBar") == 0))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:13371

        }

        if (!((UnitBehaviorCount(EventUnit(), "HeroGenericHasNoStatusBar") == 0))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:13577

        }

        if (!((UnitBehaviorCount(EventUnit(), "HeroGenericHasNoStatusBar") == 0))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:13631

        }

        if (!((UnitBehaviorCount(EventUnit(), "HeroGenericHasNoStatusBar") == 0))) {
            return false;
        }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:71


    // Implementation
    lv_cannonballCount = UnitBehaviorCount(lp_heroUnit, "MapMechanicStack");
    return FixedToInt(lv_cannonballCount);
}

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:119

            if (lv_unit == null) { break; }
            if ((UnitFilterMatch(lv_unit, lv_player, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterHallucination - 32)))) == true)) {
                lv_total += UnitBehaviorCount(lv_unit, "MapMechanicStack");
            }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:159

        if (lv_unitGroupUnit == null) { break; }
        if ((UnitFilterMatch(lv_unitGroupUnit, lp_player, UnitFilter(0, 0, 0, (1 << (c_targetFilterHallucination - 32)))) == true)) {
            lv_tempCount += UnitBehaviorCount(lv_unitGroupUnit, "MapMechanicStack");
        }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:302

            lv_positionOfTarget = UnitGetPosition(lv_target);
            lv_needNewTarget = false;
            if (((UnitTypeTestFlag(UnitGetType(lv_target), c_unitFlagTownStructureTownHall) == true) || (UnitGetType(lv_target) == "RagnarosBigRag")) && (UnitBehaviorCount(lv_target, "BattleshipBombardTarget") >= 1)) {
                lv_shotsLeftInBarrage = 0;
            }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:503

        lv_itBuilding = UnitGroupUnitFromEnd(auto8F992C5C_g, auto8F992C5C_u);
        if (lv_itBuilding == null) { break; }
        if ((DistanceBetweenPoints(UnitGetPosition(lv_itBuilding), UnitGetPosition(lv_townHall)) > 10.0) && (UnitBehaviorCount(lv_itBuilding, "BattleshipBombardTarget") <= 0)) {
            UnitGroupAdd(lv_townOuterLoop, lv_itBuilding);
        }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:507

        }
        else {
            if ((lv_itBuilding != lv_townHall) && (UnitBehaviorCount(lv_itBuilding, "BattleshipBombardTarget") <= 0)) {
                UnitGroupAdd(lv_townInnerLoop, lv_itBuilding);
            }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:1473

    lv_collectingPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerTarget);
    lv_collectingTeam = libGame_gf_TeamNumberOfPlayer(lv_collectingPlayer);
    lv_newDoubloonCount = MinI((UnitBehaviorCount(lv_collectingUnit, "MapMechanicStack") + 1), 100);

    // Conditions

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibMHmu.galaxy:391


        if ((UnitHasBehavior2(lv_itStructure, "HanamuraPayloadStructureTarget") == true)) {
            lv_hPTotal -= (StringToFixed(CatalogFieldValueGet(c_gameCatalogEffect, "Payload_AttackDamage", "Amount", 0)) * IntToFixed(UnitBehaviorCount(lv_itStructure, "HanamuraPayloadStructureTarget")));
        }

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibMHmu.galaxy:511

        lv_itBuilding = UnitGroupUnitFromEnd(autoD11A30D2_g, autoD11A30D2_u);
        if (lv_itBuilding == null) { break; }
        if ((UnitHasBehaviorWithCategoryFlag(lv_itBuilding, c_behaviorCategoryTimeStop) == false) && (UnitHasBehavior2(lv_itBuilding, "DoesNotGetTargetedByPayload") == false) && (UnitBehaviorCount(lv_itBuilding, "HanamuraPayloadStructureTarget") == 0) && ((libCore_gf_UnitStoredForUnit(lv_itBuilding, 99) != null) || (UnitHasBehaviorWithCategoryFlag(lv_itBuilding, c_behaviorCategoryDebuffStasis) == false))) {
            auto249030DF_val = libGame_gf_TownGetTownStructurePresetFromUnit(lv_itBuilding);
            if (auto249030DF_val == libGame_ge_TownStructureTypes_CannonTower) {

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibMHmu.galaxy:608


        lv_targetLife = libCore_gf_GetTotalHPForUnitIncludingAllShields(lv_target);
        lv_missilesInFlight = UnitBehaviorCount(lv_target, "HanamuraPayloadStructureTarget");
        lv_targetLife_FactoringInFlightMissiles = (lv_targetLife - (StringToFixed(CatalogFieldValueGet(c_gameCatalogEffect, "Payload_AttackDamage", "Amount", 0)) * lv_missilesInFlight));
        if (((lv_target != libGame_gv_teams[libGame_gf_EnemyTeam(lp_attackingTeam)].lv_core) && ((UnitIsAlive(lv_target) == false) || (UnitIsValid(lv_target) == false) || (lv_target == null) || (UnitHasBehavior2(lv_target, "TownCannonTowerInvulnerable") == true) || (lv_targetLife_FactoringInFlightMissiles < 0.0) || (UnitHasBehaviorWithCategoryFlag(lv_target, c_behaviorCategoryTimeStop) == true) || ((UnitHasBehaviorWithCategoryFlag(lv_target, c_behaviorCategoryDebuffStasis) == true) && (libCore_gf_UnitStoredForUnit(lv_target, 99) == null))))) {

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibMHmu.galaxy:1348

            lv_heroUnit = UnitGroupUnitFromEnd(auto47101982_g, auto47101982_u);
            if (lv_heroUnit == null) { break; }
            if (((UnitFilterMatch(lv_heroUnit, UnitGetOwner(lv_heroUnit), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterBenign - 32)))) == true) || (UnitHasBehavior2(lv_heroUnit, "CapturePointAllowed") == true)) && ((UnitBehaviorCount(lv_heroUnit, "UltimateEvolutionBuff") == 1) || (UnitBehaviorCount(lv_heroUnit, "CapturePointAllowed") == 1) || (UnitTestState(lv_heroUnit, c_unitStateHallucination) == false))) {
                lv_isPlayerOnPoint[UnitGetOwner(lv_heroUnit)] = true;
            }

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibMHmu.galaxy:1348

            lv_heroUnit = UnitGroupUnitFromEnd(auto47101982_g, auto47101982_u);
            if (lv_heroUnit == null) { break; }
            if (((UnitFilterMatch(lv_heroUnit, UnitGetOwner(lv_heroUnit), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterBenign - 32)))) == true) || (UnitHasBehavior2(lv_heroUnit, "CapturePointAllowed") == true)) && ((UnitBehaviorCount(lv_heroUnit, "UltimateEvolutionBuff") == 1) || (UnitBehaviorCount(lv_heroUnit, "CapturePointAllowed") == 1) || (UnitTestState(lv_heroUnit, c_unitStateHallucination) == false))) {
                lv_isPlayerOnPoint[UnitGetOwner(lv_heroUnit)] = true;
            }

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibNPLD.galaxy:612


    // Implementation
    if ((UnitBehaviorCount(libNPLD_gv_neutralPayload.lv_unit, "Payload_AllyMonitor_1") > 0)) {
        lv_escortCount = 1;
    }

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibNPLD.galaxy:615

        lv_escortCount = 1;
    }
    else if ((UnitBehaviorCount(libNPLD_gv_neutralPayload.lv_unit, "Payload_AllyMonitor_2") > 0)) {
        lv_escortCount = 2;
    }

mods/heroesmapmods/battlegroundmapmods/hanamura.stormmodbase.stormdata/LibNPLD.galaxy:618

        lv_escortCount = 2;
    }
    else if ((UnitBehaviorCount(libNPLD_gv_neutralPayload.lv_unit, "Payload_AllyMonitor_3") > 0)) {
        lv_escortCount = 3;
    }

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:1804

    UnitCreateEffectPoint(lv_heroUnit, "UnderworldTeleport", libMHtM_gf_MMUnderworldGateEnteringSpawnPoint(lv_usedGateUnit));
    UnitSetFacing(lv_heroUnit, PointGetFacing(libMHtM_gf_MMUnderworldGateEnteringSpawnPoint(lv_usedGateUnit)), 0.0);
    if ((UnitBehaviorCount(lv_heroUnit, "AbathurSymbioteHostBehavior") == 1)) {
        lv_abathurPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_heroUnit, "AbathurSymbioteHostBehavior", c_effectUnitCaster, 0));
        libGame_gf_CameraPanCameraForPlayerAndUpdateMapBoundsIfNecessary(lv_abathurPlayer, UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), 0.0, -1, 0.0, false);

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:579

    UnitSetPropertyFixed(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, c_unitPropEnergyMax, libMLCP_gv_mMSkyTempleTempleTotalShots);
    UnitSetPropertyFixed(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, c_unitPropEnergyPercent, 100.0);
    libGame_gf_UpdateScalingForUnit(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, libGame_gv_scalingTicks, UnitBehaviorCount(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, "LuxoriaTempleScaling"));
    libMLCP_gf_MMSkyTempleBlessingProgress(lp_templeIndex);
    return true;

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:1656

    if ((libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_finalStage == false)) {
        lv_damage = CatalogFieldValueGetAsInt(c_gameCatalogEffect, "LuxoriaTempleStage1WeaponDamage", "Amount", UnitGetOwner(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple));
        lv_damage += (MaxI(UnitBehaviorCount(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, "LuxoriaTempleScaling")-1, 0)*20);
    }
    else {

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:1660

    else {
        lv_damage = CatalogFieldValueGetAsInt(c_gameCatalogEffect, "LuxoriaTempleStage2WeaponDamage", "Amount", UnitGetOwner(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple));
        lv_damage += (MaxI(UnitBehaviorCount(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_temple, "LuxoriaTempleScaling")-1, 0)*20);
    }
    return true;

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:435

    // Automatic Variable Declarations
    // Implementation
    return FixedToInt(UnitBehaviorCount(lp_heroUnit, "MapMechanicStack"));
}

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:1730

    libMSOC_gf_MMTombSpiderQueenDropSoulsForEnemy(libGame_gf_HeroKilledLocation(), lv_dropCount, lv_furtherDrop, libGame_gf_HeroKilledPlayer());
    libMSOC_gf_MMTombSpiderQueenDropSoulsForAlly(libGame_gf_HeroKilledLocation(), libMSOC_gf_MMTombSpiderQueenGetGemsHeldforUnit(lv_deadHero), true, libGame_gf_HeroKilledPlayer());
    UnitBehaviorRemove(lv_deadHero, "MapMechanicStack", UnitBehaviorCount(lv_deadHero, "MapMechanicStack"));
    return true;
}

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:1886

        if (lv_heroUnit == null) { break; }
        if ((UnitFilterMatch(lv_heroUnit, lv_triggeringPlayer, UnitFilter(0, 0, 0, (1 << (c_targetFilterHallucination - 32)))) == true)) {
            libMSOC_gv_mMTombSpiderQueenGemsHeldForPlayer[lv_triggeringPlayer] += UnitBehaviorCount(lv_heroUnit, "MapMechanicStack");
        }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:639

            auto0D10A15E_var = UnitGroupUnitFromEnd(auto0D10A15E_g, auto0D10A15E_u);
            if (auto0D10A15E_var == null) { break; }
            if ((UnitBehaviorCount(auto0D10A15E_var, "HasMapMechanicTargetAbility") == 1)) {
                lv_nukesi += 1;
            }

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:356

    }

    if ((UnitBehaviorCount(lv_caster, "AlarakCounterStrikeReady") == 0)) {
        UnitCreateEffectUnit(lv_target, "AlarakCounterStrikeApplyReadyBehavior", lv_caster);
        UnitGroupAdd(libHALA_gv_heroAlarakCounterStrikeUnitGroup[UnitGetOwner(lv_caster)], libGame_gv_players[UnitGetOwner(lv_target)].lv_heroUnit);

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:424

        }

        if (!((UnitBehaviorCount(EventUnit(), "HeroGenericHasNoStatusBar") == 0))) {
            return false;
        }

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:492

        if ((lv_player != lv_deadUnitOwner) && (UnitIsAlive(libGame_gv_players[lv_player].lv_heroUnit) == true) && (lv_player <= libCore_gv_bALMaxPlayers) && (UnitGetType(libGame_gv_players[lv_player].lv_heroUnit) == "HeroAlarak") && (PlayerHasTalent(lv_player, "AlarakPureMalice") == true)) {
            lv_pickedUnit = libGame_gv_players[lv_player].lv_heroUnit;
            if ((UnitBehaviorCount(lv_pickedUnit, "AlarakSadismPureMaliceTalentStack") < 4)) {
                UnitCreateEffectUnit(lv_pickedUnit, "AlarakSadismApplyPureMaliceTalentStack", lv_pickedUnit);
            }

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:574

        }

        if (!(((UnitBehaviorCount(lv_transportingUnit, "AlarakSadismRiteofRakShirTalentDebuff") == 1) || (UnitBehaviorCount(lv_transportedUnit, "AlarakSadismRiteofRakShirTalentDebuff") == 1)))) {
            return false;
        }

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:574

        }

        if (!(((UnitBehaviorCount(lv_transportingUnit, "AlarakSadismRiteofRakShirTalentDebuff") == 1) || (UnitBehaviorCount(lv_transportedUnit, "AlarakSadismRiteofRakShirTalentDebuff") == 1)))) {
            return false;
        }

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:599

    UnitBehaviorRemove(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff", 1);
    auto86D088E3_at = 0;
    while (!((UnitBehaviorCount(lv_newTarget, "AlarakSadismRiteofRakShirTalentDebuff") == 1)) && auto86D088E3_at <= 5.0) {
        Wait(0.0625, c_timeGame);
        auto86D088E3_at = auto86D088E3_at + 0.0625;

mods/heromods/alarak.stormmodbase.stormdata/LibHALA.galaxy:651

    }

    autoB6FE2083_ae = (UnitBehaviorCount(lv_deadUnit, "AlarakSadismRiteofRakShirTalentDebuff") - 1);
    lv_iter = 0;
    for ( ; ( (autoB6FE2083_ai >= 0 && lv_iter <= autoB6FE2083_ae) || (autoB6FE2083_ai < 0 && lv_iter >= autoB6FE2083_ae) ) ; lv_iter += autoB6FE2083_ai ) {

mods/heromods/ana.stormmodbase.stormdata/LibHANA.galaxy:127


    lv_damageAmount = (EventPlayerEffectUsedAmountInt(c_effectAmountDamaged, false)+EventPlayerEffectUsedAmountInt(c_effectAmountBehaviorShield, false));
    lv_newTokenCount = (UnitBehaviorCount(lv_anaUnit, "AnaShrikeSelfHealPoisonTraitHealToken")+lv_damageAmount);
    UnitSetTokenCount(lv_anaUnit, libHANA_gv_hero_Ana_Shrike_DamageDoneToken_TokenCounterStr, FixedToInt(lv_newTokenCount), lv_anaUnit);
    return true;

mods/heromods/ana.stormmodbase.stormdata/LibHANA.galaxy:170

    }

    if ((UnitBehaviorCount(lv_sleepUnit, "HeroGenericHasNoStatusBar") == 0)) {
        libUIUI_gf_HeroConsoleUnitStatusBarsUpdateStunDeathBar(lv_sleepBehavior, lv_sleepPlayer);
    }

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:204

    lv_aurielPlayer = 1;
    for ( ; ( (autoA5AA3F32_ai >= 0 && lv_aurielPlayer <= autoA5AA3F32_ae) || (autoA5AA3F32_ai < 0 && lv_aurielPlayer >= autoA5AA3F32_ae) ) ; lv_aurielPlayer += autoA5AA3F32_ai ) {
        if (((UnitGetType(libGame_gv_players[lv_aurielPlayer].lv_heroUnit) == "HeroAuriel") && (libGame_gf_TeamNumberOfPlayer(lv_aurielPlayer) == lv_deadPlayerTeam) && (UnitBehaviorCount(libGame_gv_players[lv_aurielPlayer].lv_heroUnit, "Ultimate1Unlocked") > 0) && (lv_aurielPlayer != lp_deadPlayer))) {
            ActorSend(libNtve_gf_MainActorofUnit(libHAUR_gv_heroAurielResurrectSpirit[lp_deadPlayer]), libNtve_gf_Signal(("Auriel" + IntToString(lv_aurielPlayer))));
        }

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:629

    }

    lv_bestowHopeStacks = UnitBehaviorCount(lv_proxy, "AurielBestowHopeProxyBehavior");
    auto1108B650_ae = lv_bestowHopeStacks;
    lv_bestowHopeStackIteration = 0;

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:669

    // Conditions
    if (testConds) {
        if (!((UnitBehaviorCount(lv_aurielProxy, "AurielBestowHopeProxyBehavior") > 0))) {
            return false;
        }

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:865


    lv_aurielTeam = libGame_gf_TeamNumberOfPlayer(lv_aurielPlayer);
    if ((UnitBehaviorCount(lv_auriel, "Ultimate1Unlocked") > 0)) {
        libHAUR_gv_heroAurielResurrectRezzersOnTeam[lv_aurielTeam] += 1;
    }

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:1009

        lv_iPlayer = 1;
        for ( ; ( (autoC00E5C25_ai >= 0 && lv_iPlayer <= autoC00E5C25_ae) || (autoC00E5C25_ai < 0 && lv_iPlayer >= autoC00E5C25_ae) ) ; lv_iPlayer += autoC00E5C25_ai ) {
            if (((UnitGetType(libGame_gv_players[lv_iPlayer].lv_heroUnit) == "HeroAuriel") && (UnitBehaviorCount(libGame_gv_players[lv_iPlayer].lv_heroUnit, "Ultimate1Unlocked") > 0) && (libGame_gf_TeamNumberOfPlayer(lv_deadPlayer) == libGame_gf_TeamNumberOfPlayer(lv_iPlayer)) && (lv_iPlayer != lv_deadPlayer))) {
                CatalogFieldValueSet(c_gameCatalogUnit, "AurielResurrectSpirit", "Name", lv_deadPlayer, CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(libGame_gv_players[lv_deadPlayer].lv_heroUnit), "Name", lv_deadPlayer));
                UnitCreate(1, "AurielResurrectSpirit", 0, lv_deadPlayer, UnitGetPosition(lv_deadHero), 270.0, lv_deadHero);

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:1745

    lv_itViking = 1;
    for ( ; ( (auto51E10A0D_ai >= 0 && lv_itViking <= auto51E10A0D_ae) || (auto51E10A0D_ai < 0 && lv_itViking >= auto51E10A0D_ae) ) ; lv_itViking += auto51E10A0D_ai ) {
        if ((UnitIsValid(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_lVPlayer][lv_itViking].lv_spiritUnit) == true) && (UnitBehaviorCount(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_lVPlayer][lv_itViking].lv_vikingUnit, "LostVikingsPlayAgainSuppressResurrection") == 0)) {
            UnitRemove(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_lVPlayer][lv_itViking].lv_spiritUnit);
            UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_lVPlayer][lv_itViking].lv_spiritUnit, "AurielResurrectNotRezzable", libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_lVPlayer][lv_itViking].lv_spiritUnit, 1);

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:1805


    }
    while ((UnitBehaviorCount(lv_caster, "LostVikingsPlayAgainActivelyCasting") == 1)) {
        Wait(0.0625, c_timeGame);
    }

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:2084

            lv_aurielPlayer = 1;
            for ( ; ( (autoD32A93E3_ai >= 0 && lv_aurielPlayer <= autoD32A93E3_ae) || (autoD32A93E3_ai < 0 && lv_aurielPlayer >= autoD32A93E3_ae) ) ; lv_aurielPlayer += autoD32A93E3_ai ) {
                if ((UnitGetType(libGame_gv_players[lv_aurielPlayer].lv_heroUnit) == "HeroAuriel") && (libGame_gf_TeamNumberOfPlayer(lv_deadPlayer) == libGame_gf_TeamNumberOfPlayer(lv_aurielPlayer)) && (libHAUR_gv_heroAurielResurrectShowSpiritTimer[lv_deadPlayer] == true) && (UnitBehaviorCount(libGame_gv_players[lv_aurielPlayer].lv_heroUnit, "Ultimate1Unlocked") > 0)) {
                    TextTagDestroy(libHAUR_gv_heroAurielResurrectDeadPlayerSpiritTimerTextTag[lv_deadPlayer][0]);
                    TextTagDestroy(libHAUR_gv_heroAurielResurrectDeadPlayerSpiritTimerTextTag[lv_deadPlayer][1]);

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:2128


                    }
                    if ((TimerGetRemaining(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) > 4.0) && (TimerGetRemaining(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) < libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime) && (UnitBehaviorCount(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectActivelyResurrecting") == 0)) {
                        if (((UnitGetType(libGame_gv_players[lv_deadPlayer].lv_heroUnit) == "HeroLeoric") || ((UnitGetType(libGame_gv_players[lv_deadPlayer].lv_heroUnit) == "HeroMurky") && (UnitIsAlive(libGame_gv_heroDeathMurkyRespawnEggs[lv_deadPlayer]) == true)))) {
                        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:601

    Wait(0.0625, c_timeGame);
    libGame_gf_HeroDeathUpdateRespawnTimer(libGame_gf_HeroKilledPlayer(), lv_choTimer);
    while ((UnitBehaviorCount(lv_choUnit, "GallPsychoticBreakDyingBehavior") == 1)) {
        lv_choTimer = TimerGetRemaining(libGame_gv_players[lv_choPlayer].lv_respawnTimer);
        libGame_gf_HeroDeathUpdateRespawnTimer(libGame_gf_HeroKilledPlayer(), lv_choTimer);

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:966

    // Conditions
    if (testConds) {
        if (!(((UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "ChoSurgingFistFakeChannel") == 1) || (UnitBehaviorCount(libGame_gv_players[lv_player].lv_activeVehicle, "ChoSurgingFistFakeChannel") == 1)))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:966

    // Conditions
    if (testConds) {
        if (!(((UnitBehaviorCount(libGame_gv_players[lv_player].lv_heroUnit, "ChoSurgingFistFakeChannel") == 1) || (UnitBehaviorCount(libGame_gv_players[lv_player].lv_activeVehicle, "ChoSurgingFistFakeChannel") == 1)))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:1028

    }

    while ((UnitBehaviorCount(lv_cho, "ChoSurgingFistFakeChannel") == 1)) {
        if ((UnitHasBehaviorWithCategoryFlag(lv_cho, c_behaviorCategoryTimeStop) == false)) {
            if ((lv_i <= lv_maxScale)) {

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2281

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2322

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2363

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2410

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2457

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2506

        }

        if (!((UnitBehaviorCount(EventUnit(), "AbathurUltimateEvolutionControlBehavior") == 0))) {
            return false;
        }

mods/heromods/dehaka.stormmodbase.stormdata/LibHDEH.galaxy:133


    // Implementation
    if ((((PlayerHasTalent(lp_playerNumber, "DehakaEssenceCollectionTalentEnhancedAgility") == true) && (UnitBehaviorCount(lv_dehakaUnit, "DehakaEssenceCollectionEnhancedAgilityQuestToken") == libHDEH_gv_heroDehakaTalentEnhancedAgilityMaxTokenStackCount)) || (PlayerHasTalent(lp_playerNumber, "DehakaEssenceCollectionTalentEnhancedAgility") == false))) {
        return ;
    }

mods/heromods/dehaka.stormmodbase.stormdata/LibHDEH.galaxy:142

            UnitCreateEffectUnit(lv_dehakaUnit, "DehakaEssenceCollectionEnhancedAgilityTalentQuestProgressModifyTokenCount", lv_dehakaUnit);
        }
        if ((UnitBehaviorCount(lv_dehakaUnit, "DehakaEssenceCollectionEnhancedAgilityQuestToken") == libHDEH_gv_heroDehakaTalentEnhancedAgilityMaxTokenStackCount)) {
            libGame_gf_ScoreValuesReportIntegerValueAndLog(lp_playerNumber, "DehakaEssenceCollectionMuscularAugementationCount", 0);
            return ;