# Minimum (Real)

Grammar — Min(value1, value2)
FlagsNative | Function

Returns the lowest of the two real values specified.

# Arguments

  • fixed — Value 1
  • fixed — Value 2

Returns — fixed

native fixed MinF(fixed x1, fixed x2);

Category: Math / Conditionals

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1177

    lv_posCurrent = UnitGetPosition(gv_boss);
    lv_xNew = (PointGetX(lv_posCurrent) + ((lp_x - PointGetX(lv_posCurrent)) * 0.5));
    lv_targetLoc = Point(MaxF(gf_ConvertShooterXToMapX(5.0), MinF(gf_ConvertShooterXToMapX(15.0), lv_xNew)), gf_ConvertShooterYToMapY(gv_c_LeviathanY));
    UnitIssueOrder(gv_boss, OrderTargetingPoint(AbilityCommand("move", 0), lv_targetLoc), c_orderQueueReplace);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2985

    // Implementation
    lv_center = UnitGetPosition(lp_powerup);
    lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
    lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
    lv_center = Point(lv_x, lv_y);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2986

    lv_center = UnitGetPosition(lp_powerup);
    lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
    lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
    lv_center = Point(lv_x, lv_y);
    auto8D64FDEC_n = 6;

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

    Wait(4.0, c_timeReal);
    gf_OpenDoor(ge_RoomID_RoomBridge, false);
    Wait(MinF((6.33 - (1.0 + 0.2 + 0.25 + 0.75 + 4.0)), (SoundLengthSync(SoundLink("TTychus05BriefingTychus00010", 0)) - (0.25 + 0.75 + 4.0))), c_timeReal);
    libNtve_gf_SimpleLookAtStop(gf_ActorUnit(ge_ActorID_ActorHorner), "SlowStanding");
    Wait(1.0, c_timeReal);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:484

            lv_mutaSpewSize = gv_cMutaSpewSizeFast;
            if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
                TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:1177

    lv_posCurrent = UnitGetPosition(gv_boss);
    lv_xNew = (PointGetX(lv_posCurrent) + ((lp_x - PointGetX(lv_posCurrent)) * 0.5));
    lv_targetLoc = Point(MaxF(gf_ConvertShooterXToMapX(5.0), MinF(gf_ConvertShooterXToMapX(15.0), lv_xNew)), gf_ConvertShooterYToMapY(gv_c_LeviathanY));
    UnitIssueOrder(gv_boss, OrderTargetingPoint(AbilityCommand("move", 0), lv_targetLoc), c_orderQueueReplace);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2985

    // Implementation
    lv_center = UnitGetPosition(lp_powerup);
    lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
    lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
    lv_center = Point(lv_x, lv_y);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2986

    lv_center = UnitGetPosition(lp_powerup);
    lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
    lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
    lv_center = Point(lv_x, lv_y);
    auto8D64FDEC_n = 6;

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

    Wait(4.0, c_timeReal);
    gf_OpenDoor(ge_RoomID_RoomBridge, false);
    Wait(MinF((6.33 - (1.0 + 0.2 + 0.25 + 0.75 + 4.0)), (SoundLengthSync(SoundLink("TTychus05BriefingTychus00010", 0)) - (0.25 + 0.75 + 4.0))), c_timeReal);
    libNtve_gf_SimpleLookAtStop(gf_ActorUnit(ge_ActorID_ActorHorner), "SlowStanding");
    Wait(1.0, c_timeReal);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2mapMapScript.galaxy:484

            lv_mutaSpewSize = gv_cMutaSpewSizeFast;
            if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
                TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2242

    CameraLockInput(gv_pLAYER_01_USER, true);
    lv_target = PointWithOffset(PointFromId(3), 0.0, -1.5);
    lv_duration = MinF(0.5, (DistanceBetweenPoints(CameraGetTarget(gv_pLAYER_01_USER), lv_target) * 0.5));
    CameraPan(gv_pLAYER_01_USER, lv_target, lv_duration, -1, 10.0, false);
    Wait(lv_duration, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:4376

    CameraLockInput(gv_pLAYER_01_USER, true);
    lv_target = PointWithOffset(PointFromId(164), 0.0, -1.5);
    lv_duration = MinF(0.5, (DistanceBetweenPoints(CameraGetTarget(gv_pLAYER_01_USER), lv_target) * 0.5));
    CameraPan(gv_pLAYER_01_USER, lv_target, lv_duration, -1, 10.0, false);
    Wait(lv_duration, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:5368

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    lv_gate = UnitFromId(329);
    TimerPause(gv_s2_LockdownTimer, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:6066

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    lv_gate = UnitFromId(706);
    TransmissionClear(gv_interruptableTransmission);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:7137

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    SoundPlay(SoundLink("Goliath_Explode", -1), PlayerGroupAll(), 100.0, 0.0);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.3, 2.0, 100.0, 1.5);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:2327

    TriggerExecute(gt_XPBarCreate, true, false);
    lv_cameraLocationSave = CameraGetTarget(gv_pLAYER_01_USER);
    lv_distance = MinF(2.0, (DistanceBetweenPoints(PointFromId(515), UnitGetPosition(gv_hyperion)) / 1.0));
    if ((UnitIsAlive(gv_mineralTutorialFormation) == true)) {
        CameraPan(gv_pLAYER_01_USER, PointWithOffsetPolar(PointFromId(515), lv_distance, AngleBetweenPoints(PointFromId(515), UnitGetPosition(gv_hyperion))), 1.0, -1, 10.0, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:2242

    CameraLockInput(gv_pLAYER_01_USER, true);
    lv_target = PointWithOffset(PointFromId(3), 0.0, -1.5);
    lv_duration = MinF(0.5, (DistanceBetweenPoints(CameraGetTarget(gv_pLAYER_01_USER), lv_target) * 0.5));
    CameraPan(gv_pLAYER_01_USER, lv_target, lv_duration, -1, 10.0, false);
    Wait(lv_duration, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:4376

    CameraLockInput(gv_pLAYER_01_USER, true);
    lv_target = PointWithOffset(PointFromId(164), 0.0, -1.5);
    lv_duration = MinF(0.5, (DistanceBetweenPoints(CameraGetTarget(gv_pLAYER_01_USER), lv_target) * 0.5));
    CameraPan(gv_pLAYER_01_USER, lv_target, lv_duration, -1, 10.0, false);
    Wait(lv_duration, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:5368

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    lv_gate = UnitFromId(329);
    TimerPause(gv_s2_LockdownTimer, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:6066

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    lv_gate = UnitFromId(706);
    TransmissionClear(gv_interruptableTransmission);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:7137

    }

    gv_lowestLockDownTime = MinF(gv_lowestLockDownTime, TimerGetRemaining(gv_s2_LockdownTimer));
    SoundPlay(SoundLink("Goliath_Explode", -1), PlayerGroupAll(), 100.0, 0.0);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.3, 2.0, 100.0, 1.5);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:2327

    TriggerExecute(gt_XPBarCreate, true, false);
    lv_cameraLocationSave = CameraGetTarget(gv_pLAYER_01_USER);
    lv_distance = MinF(2.0, (DistanceBetweenPoints(PointFromId(515), UnitGetPosition(gv_hyperion)) / 1.0));
    if ((UnitIsAlive(gv_mineralTutorialFormation) == true)) {
        CameraPan(gv_pLAYER_01_USER, PointWithOffsetPolar(PointFromId(515), lv_distance, AngleBetweenPoints(PointFromId(515), UnitGetPosition(gv_hyperion))), 1.0, -1, 10.0, true);

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


    while (true) {
        Wait((30.0+MinF(lv_indexTimes, 3.0)*10), c_timeAI);
        if ((libSwaC_gv_zS_FeaturedZergStructureFlashStatus[1] >= 2)) {
            return true;

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

    libSwaC_gv_zSX_KerriganUILastKnownXP = libSwaC_gv_zS_KerriganUIFinalXP;
    lv_startLevel = libSwaC_gv_zS_KerriganUIXP;
    lv_levelUpPeriod = MinF((lv_maxTotalDuration/lv_levelUpCount), lv_levelDuration);
    libSwaC_gv_zS_KerriganUIDeltaHealth = (libSwaC_gv_zS_KerriganUIFinalHealth-CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeMax", 1));
    libSwaC_gv_zS_KerriganUIDeltaEnergy = (libSwaC_gv_zS_KerriganUIFinalEnergy-CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "EnergyMax", 1));

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

            lv_itUnit = UnitGroupUnitFromEnd(auto1B96E967_g, auto1B96E967_u);
            if (lv_itUnit == null) { break; }
            lv_newBehaviorTime = MinF(lv_newBehaviorTime, UnitBehaviorDuration(lv_itUnit, "PVEResurrectCastTracking"));
            lv_newPlayerName = PlayerName(UnitGetOwner(lv_itUnit));
            lv_newHeroName = UnitGetName(lv_itUnit);

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

            lv_itUnit = UnitGroupUnitFromEnd(auto1B96E967_g, auto1B96E967_u);
            if (lv_itUnit == null) { break; }
            lv_newBehaviorTime = MinF(lv_newBehaviorTime, UnitBehaviorDuration(lv_itUnit, "DeadHeroResurrectCastTrackingBehavior"));
            lv_newPlayerName = PlayerName(UnitGetOwner(lv_itUnit));
            lv_newHeroName = UnitGetName(lv_itUnit);

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

        }
        if ((lv_difference < 1.0) && (UnitGetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeedCurrent, c_unitPropCurrent) < lv_maxSpeed)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 1.0), lv_maxSpeed));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 1.0), lv_maxSpeed));
        }

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

        if ((lv_difference < 1.0) && (UnitGetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeedCurrent, c_unitPropCurrent) < lv_maxSpeed)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 1.0), lv_maxSpeed));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 1.0), lv_maxSpeed));
        }
        else if ((lv_difference < 3.0) && (UnitGetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeedCurrent, c_unitPropCurrent) < lv_maxSpeed)) {

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

        }
        else if ((lv_difference < 3.0) && (UnitGetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeedCurrent, c_unitPropCurrent) < lv_maxSpeed)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 0.5), lv_maxSpeed));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 0.5), lv_maxSpeed));
        }

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

        else if ((lv_difference < 3.0) && (UnitGetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeedCurrent, c_unitPropCurrent) < lv_maxSpeed)) {
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 0.5), lv_maxSpeed));
            UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MinF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] + 0.5), lv_maxSpeed));
        }
        else if ((lv_difference >= 10.0)) {

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

    // Implementation
    lv_originalDistance = DistanceBetweenPoints(lp_selfPosition, lp_otherPoint);
    lv_searchRadius = MinF(MaxF(libAIAI_gv_aIGateNearbyRange, (lv_offsetFromEdge + (0.5 * lv_originalDistance))), lv_maxSearchRadius);
    if ((lv_originalDistance < ((lv_searchRadius - lv_offsetFromEdge) * 2.0))) {
        lv_centerPoint = MidPoint(lp_selfPosition, lp_otherPoint);

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

    }
    if ((lv_behaviorDuration > 0.0)) {
        lv_reducedDuration = (lv_behaviorDuration * (1.0 - MinF(lv_percentReduction, 0.9)));
        UnitBehaviorSetDurationRemaining(lp_unit, lp_cCBehavior, lv_reducedDuration);
    }

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

        lv_itLevel = 1;
        for ( ; ( (auto9D1290D1_ai >= 0 && lv_itLevel <= auto9D1290D1_ae) || (auto9D1290D1_ai < 0 && lv_itLevel >= auto9D1290D1_ae) ) ; lv_itLevel += auto9D1290D1_ai ) {
            libCore_gv_bALDeathTimes[lv_itLevel] = MinF(libCore_gv_bALDeathTimes[lv_itLevel], libCore_gv_sYSDeathTimerCap);
        }
        libCore_gv_bALMaxDeathTime = libCore_gv_bALDeathTimes[libCore_gv_bALMaxLevel];

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

    }

    lv_metaXP = libGame_gf_BrawlMetaXPTableLerp(MinF(TimerGetElapsed(libGame_gv_matchGameplayTimer), (libCore_gv_dataXPBrawlMetaXPMaximumDuration * 60.0)));
    lv_metaXP_Bonus = libGame_gf_BrawlMetaXPTableLerp(MinF(TimerGetElapsed(libGame_gv_matchGameplayTimer), (libCore_gv_dataXPBrawlMetaXPExpectedDuration * 60.0)));
    if ((libGame_gv_players[lp_player].lv_victoryDefeat == c_gameOverVictory)) {

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


    lv_metaXP = libGame_gf_BrawlMetaXPTableLerp(MinF(TimerGetElapsed(libGame_gv_matchGameplayTimer), (libCore_gv_dataXPBrawlMetaXPMaximumDuration * 60.0)));
    lv_metaXP_Bonus = libGame_gf_BrawlMetaXPTableLerp(MinF(TimerGetElapsed(libGame_gv_matchGameplayTimer), (libCore_gv_dataXPBrawlMetaXPExpectedDuration * 60.0)));
    if ((libGame_gv_players[lp_player].lv_victoryDefeat == c_gameOverVictory)) {
        lv_metaXP += (0.5 * lv_metaXP_Bonus);

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

    lv_currentDeathTime = libCore_gf_HeroDeathTime(lv_deadPlayer, UnitLevel(lv_deadUnit));
    lv_spiritOfRedemptionBuffDuration = CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "SpiritOfRedemptionSpiritFormBuff", "Duration", 0);
    CatalogFieldValueSetFixed(c_gameCatalogBehavior, "SpiritOfRedemptionSpiritFormBuff", "Duration", lv_deadPlayer, MinF((lv_currentDeathTime - lv_spiritOfRedemptionLowDeathTimeAdjustment_C), lv_spiritOfRedemptionBuffDuration));
    libGame_gf_CameraPanCameraForPlayerAndUpdateMapBoundsIfNecessary(lv_deadPlayer, UnitGetPosition(lv_deadUnit), 0.25, -1, 0.0, false);
    libGame_gf_SendEventHeroEntersSpecialDeathState(lv_deadUnit);

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

    lv_deathTime = (libCore_gv_bALDeathTimes[lp_level] * libCore_gv_bALDeathTimeScaler);
    if ((libCore_gv_sYSDeathTimerCap > 0.0)) {
        lv_deathTime = MinF(lv_deathTime, libCore_gv_sYSDeathTimerCap);
    }

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


    if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_Tutorial1)) {
        lv_deathTime = MinF(MaxF(7.0, (lv_deathTime / 2.0)), 15.0);
    }
    else if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_TutorialMapMechanics)) {

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

    }
    else if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_TutorialMapMechanics)) {
        lv_deathTime = MinF(MaxF(7.0, (lv_deathTime / 2.0)), 20.0);
    }
    else if ((libStEx_gf_GameIsSinglePlayer() == true) && ((libStEx_gf_InTrainingMode() == true) || (libStEx_gf_InPracticeMode() == true)) && (PlayerType(lp_player) == c_playerTypeUser)) {

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

    }
    else if ((libStEx_gf_GameIsSinglePlayer() == true) && ((libStEx_gf_InTrainingMode() == true) || (libStEx_gf_InPracticeMode() == true)) && (PlayerType(lp_player) == c_playerTypeUser)) {
        lv_deathTime = MinF(lv_deathTime, 30.0);
    }
    else if (((libCore_gv_sYSGameMode == libCore_ge_GameModes_ArenaMode) || (libCore_gv_sYSGameMode == libCore_ge_GameModes_AttackDefend))) {

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

    }
    else if (((libCore_gv_sYSGameMode == libCore_ge_GameModes_ArenaMode) || (libCore_gv_sYSGameMode == libCore_ge_GameModes_AttackDefend))) {
        lv_deathTime = MinF(lv_deathTime, 15.0);
    }
    return lv_deathTime;

mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmodbase.stormdata/LibVLSS.galaxy:48


    // Implementation
    lv_firstHalfProgress = MinF(libVLSK_gf_CapturingProgressOfTeam(lp_team, lp_capturePointIndex), (libVLSK_gv_capturePointContestTimeGoal_C / 2.0));
    lv_secondHalfProgress = (libVLSK_gf_CapturingProgressOfTeam(lp_team, lp_capturePointIndex) - lv_firstHalfProgress);
    lv_pitch = ((16 * lv_firstHalfProgress * 0.0625) + (16 * lv_secondHalfProgress * 0.1875));

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:102

    // Implementation
    if ((PlayerHasTalent(lp_genjiPlayer, "GenjiDeflectDragonClaw") == true) && (UnitHasBehavior2(lp_genjiUnit, "GenjiDeflectDragonClawActive") == false)) {
        PlayerScoreValueSetFromFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore, MinF((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) + lp_incomingDamage), lv_damageThreshold));
        if ((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) >= lv_damageThreshold)) {
            UnitCreateEffectUnit(lp_genjiUnit, "GenjiDeflectDragonClawActiveApplyBehavior", lp_genjiUnit);

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:556


    lv_duration = (UnitBehaviorDuration(lv_genjiUnit, "GenjiDragonbladeActive") + libHGen_gv_heroGenjiDragonbladeTheDragonBecomesMeDurationIncreaseIncrement);
    lv_duration = MinF(lv_duration, 8.0);
    UnitBehaviorSetDurationRemaining(lv_genjiUnit, "GenjiDragonbladeActive", lv_duration);
    return true;

mods/heromods/guldan.stormmodbase.stormdata/LibHGUL.galaxy:222


    libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] = (libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] + lv_damageDealt);
    PlayerScoreValueSetFromFixed(EventUnitDamageSourcePlayer(), "GenericHeroRealScoreValue1", MinF(libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()], CatalogFieldValueGetAsFixed(c_gameCatalogEffect, "GuldanLifeTapDarknessWithinDamageThreshold", "Amount", EventUnitDamageSourcePlayer())));
    if ((libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] >= CatalogFieldValueGetAsFixed(c_gameCatalogEffect, "GuldanLifeTapDarknessWithinDamageThreshold", "Amount", EventUnitDamageSourcePlayer()))) {
        UnitBehaviorAdd(EventUnitDamageSourceUnit(), "GuldanLifeTapDarknessWithinReady", EventUnitDamageSourceUnit(), 1);

mods/heromods/imperius.stormmodbase.stormdata/LibHIMP.galaxy:129

        lv_relativeAngle360 = (lv_relativeAngle + 360.0);
    }
    lv_iTAngle = MinF(AbsF((lv_imperiusUnitFacing360 - lv_relativeAngle360)), AbsF(((lv_imperiusUnitFacing360 + lv_relativeAngle360) - 360.0)));
    lv_iADistance = (Cos(lv_iTAngle) * lv_iTDistance);
    if (((lv_iADistance >= lv_minSkewerDistance) && (lv_iADistance <= lv_maxSkewerDistance))) {

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

        lv_lastseenhealth -= lv_healthdelta;
        if ((UnitGroupCount(UnitGroupFilter(null, c_playerAny, lp_trainCars, UnitFilter(0, (1 << (c_targetFilterInvulnerable - 32)), 0, 0), 0), c_unitCountAlive) == 0)) {
            lv_lastseenhealth = MinF(lv_lastseenhealth, lp_maxHealth);
            autoBBEEF069_g = lp_trainCars;
            autoBBEEF069_u = UnitGroupCount(autoBBEEF069_g, c_unitCountAll);

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

        }

        lv_factionScore = MinF(lv_factionMaxStacks, lv_factionScore);
        lv_factionBonusLifeMulti = (lv_itBonusLifeMulti*lv_factionScore*lv_bonusMulti);
        lv_factionBonusAtkSpeedMulti = (lv_itBonusAtkSpeedMulti*lv_factionScore*lv_bonusMulti);

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

        lv_targetMissionTime = (540.0 - lv_masteryTimeReduction);
    }
    lv_cooldownTime = MinF((180.0 - lv_masteryTimeReduction), (lv_targetMissionTime - GameGetMissionTime()));
    lv_cooldownTime = MaxF(lv_cooldownTime, 10.0);
    if ((PlayerGetCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision") < lv_cooldownTime)) {

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

    lv_target = EventPlayerEffectUsedUnit(c_effectUnitTarget);
    lv_distance = DistanceBetweenPoints(EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
    lv_range = MinF(lv_distance, lv_maxRange);
    lv_targetpoint = libNtve_gf_PointOffsetTowardsPoint(EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), lv_range, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));

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

            lv_healRemaining = (10.0 * lv_elapsedTime);
            lv_healTotal = lv_healRemaining;
            lv_healRemaining = MinF(lv_healRemaining, UnitGetCustomValue(lv_indexUnit, libCOMU_gv_cTC_TempDamageCustomIndex));
            lv_healAmount = MinF((UnitGetPropertyFixed(lv_indexUnit, c_unitPropLifeMax, c_unitPropCurrent) - UnitGetPropertyFixed(lv_indexUnit, c_unitPropLife, c_unitPropCurrent)), lv_healRemaining);
            if ((lv_healAmount > 0.0)) {

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

            lv_healTotal = lv_healRemaining;
            lv_healRemaining = MinF(lv_healRemaining, UnitGetCustomValue(lv_indexUnit, libCOMU_gv_cTC_TempDamageCustomIndex));
            lv_healAmount = MinF((UnitGetPropertyFixed(lv_indexUnit, c_unitPropLifeMax, c_unitPropCurrent) - UnitGetPropertyFixed(lv_indexUnit, c_unitPropLife, c_unitPropCurrent)), lv_healRemaining);
            if ((lv_healAmount > 0.0)) {
                UnitSetPropertyFixed(lv_indexUnit, c_unitPropLife, (UnitGetPropertyFixed(lv_indexUnit, c_unitPropLife, c_unitPropCurrent) + lv_healAmount));

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


            lv_healRemaining -= lv_healAmount;
            lv_healAmount = MinF((UnitGetPropertyFixed(lv_indexUnit, c_unitPropShieldsMax, c_unitPropCurrent) - UnitGetPropertyFixed(lv_indexUnit, c_unitPropShields, c_unitPropCurrent)), lv_healRemaining);
            if ((lv_healAmount > 0.0)) {
                UnitSetPropertyFixed(lv_indexUnit, c_unitPropShields, (UnitGetPropertyFixed(lv_indexUnit, c_unitPropShields, c_unitPropCurrent) + lv_healAmount));

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

    }

    ActorSend(libNtve_gf_MainActorofUnit(lv_u), (("SetScale " + FixedToString(MinF((UnitBehaviorCount(lv_jaina, "AttInt")*0.04), 1.4), c_fixedPrecisionAny))));
    return true;
}