# Set Unit Behavior Duration Remaining

Grammar — Set behavior remaining duration to durationRemaining|Duration on unit unit
FlagsNative | Action

Sets a behavior remaining duration on a unit.

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior
  • fixed — Duration Remaining

Returns — void

native void UnitBehaviorSetDurationRemaining(
	unit inUnit,
	string inBehavior,
	fixed inDuration,
);

Category: Behavior / Basic

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:4355

    libNtve_gf_ChangeUnitDamage(UnitFromId(86), 0, 0);
    UnitBehaviorAdd(UnitFromId(8), "QueenSpawnLarvaTimer", UnitFromId(8), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(8), "QueenSpawnLarvaTimer", 0.5);
    UnitBehaviorAdd(UnitFromId(157), "QueenSpawnLarvaTimer", UnitFromId(157), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(157), "QueenSpawnLarvaTimer", 0.5);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:4357

    UnitBehaviorSetDurationRemaining(UnitFromId(8), "QueenSpawnLarvaTimer", 0.5);
    UnitBehaviorAdd(UnitFromId(157), "QueenSpawnLarvaTimer", UnitFromId(157), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(157), "QueenSpawnLarvaTimer", 0.5);
    auto471074E8_ae = 18;
    auto471074E8_ai = 1;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:4355

    libNtve_gf_ChangeUnitDamage(UnitFromId(86), 0, 0);
    UnitBehaviorAdd(UnitFromId(8), "QueenSpawnLarvaTimer", UnitFromId(8), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(8), "QueenSpawnLarvaTimer", 0.5);
    UnitBehaviorAdd(UnitFromId(157), "QueenSpawnLarvaTimer", UnitFromId(157), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(157), "QueenSpawnLarvaTimer", 0.5);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:4357

    UnitBehaviorSetDurationRemaining(UnitFromId(8), "QueenSpawnLarvaTimer", 0.5);
    UnitBehaviorAdd(UnitFromId(157), "QueenSpawnLarvaTimer", UnitFromId(157), 1);
    UnitBehaviorSetDurationRemaining(UnitFromId(157), "QueenSpawnLarvaTimer", 0.5);
    auto471074E8_ae = 18;
    auto471074E8_ai = 1;

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:2002

                libNtve_gf_SendActorMessageToUnit(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit, "Signal StopDueling");
                UnitBehaviorAddPlayer(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit, "MercPunisherLanerFixate", UnitGetOwner(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit), 1);
                UnitBehaviorSetDurationRemaining(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit, "MercPunisherLanerFixate", TimerGetRemaining(libAMPU_gv_aRMPunisherTimerEngraged));
            }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:3754

            UnitBehaviorAdd(UnitLastCreated(), "JungleCreepPassive", UnitLastCreated(), 1);
            UnitBehaviorAdd(UnitLastCreated(), "JungleMercDefenderBirthInvulnerability", UnitLastCreated(), 1);
            UnitBehaviorSetDurationRemaining(UnitLastCreated(), "JungleMercDefenderBirthInvulnerability", (UnitBehaviorDuration(UnitLastCreated(), "JungleMercDefenderBirthInvulnerability") - lv_StaggeredBirth));
            lv_StaggeredBirth += 0.0625;
            Wait(0.0625, c_timeGame);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:10000

            if ((UnitGetType(lv_heroUnit) == "HeroTyrael") && (UnitHasBehavior2(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") == true)) {
                UnitBehaviorSetDuration(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff", 99.0);
                UnitBehaviorSetDurationRemaining(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff", 99.0);
            }

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:10005

            if ((UnitGetType(lv_heroUnit) == "HeroUther") && (UnitHasBehavior2(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") == true)) {
                UnitBehaviorSetDuration(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff", 99.0);
                UnitBehaviorSetDurationRemaining(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff", 99.0);
            }

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

        TextExpressionSetToken("Param/Expression/lib_PVEB_96731AFB", "B", lv_newHeroName);
        libNtve_gf_SetDialogItemText(DialogControlLastCreated(), TextExpressionAssemble("Param/Expression/lib_PVEB_96731AFB"), PlayerGroupSingle(lv_targetPlayer));
        UnitBehaviorSetDurationRemaining(libGame_gv_players[lv_targetPlayer].lv_heroUnit, "PVEResurrectIcon", lv_newBehaviorTime);
        return true;
    }

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

        TextExpressionSetToken("Param/Expression/lib_PVEM_96731AFB", "B", lv_newHeroName);
        libNtve_gf_SetDialogItemText(DialogControlLastCreated(), TextExpressionAssemble("Param/Expression/lib_PVEM_96731AFB"), PlayerGroupSingle(lv_targetPlayer));
        UnitBehaviorSetDurationRemaining(libGame_gv_players[lv_targetPlayer].lv_heroUnit, "DeadHeroResurrectIconBehavior", lv_newBehaviorTime);
        return true;
    }

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

            UnitCreateEffectUnit(auto7E23C28A_var, "EvolveMonstrosityHealthStackHealer", auto7E23C28A_var);
            UnitBehaviorAdd(libGame_gv_players[lv_abathurPlayer].lv_heroUnit, "AbathurEvolveMonstrosityAbathurStack", libGame_gv_players[lv_abathurPlayer].lv_heroUnit, 1);
            UnitBehaviorSetDurationRemaining(libGame_gv_players[lv_abathurPlayer].lv_heroUnit, "AbathurEvolveMonstrosityAbathurStack", UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity"));
            UnitBehaviorSetDurationRemaining(lv_symbiote, "AbathurEvolveMonstrosityAbathurStack", UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity"));
            if ((PlayerHasTalent(lv_abathurPlayer, "AbathurMasteryEvolutionComplete") == true)) {

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

            UnitBehaviorAdd(libGame_gv_players[lv_abathurPlayer].lv_heroUnit, "AbathurEvolveMonstrosityAbathurStack", libGame_gv_players[lv_abathurPlayer].lv_heroUnit, 1);
            UnitBehaviorSetDurationRemaining(libGame_gv_players[lv_abathurPlayer].lv_heroUnit, "AbathurEvolveMonstrosityAbathurStack", UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity"));
            UnitBehaviorSetDurationRemaining(lv_symbiote, "AbathurEvolveMonstrosityAbathurStack", UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity"));
            if ((PlayerHasTalent(lv_abathurPlayer, "AbathurMasteryEvolutionComplete") == true)) {
                lv_evolutionCompleteStacks = PlayerScoreValueGetAsInt(lv_abathurPlayer, "EvolutionCompleteStacks");

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

        UnitBehaviorAdd(lv_target, "ArtanisSpearofAdunPurifierBeamTargeting", libGame_gv_players[lv_owner].lv_heroUnit, 1);
        UnitBehaviorAdd(lv_target, "ArtanisSpearofAdunPurifierBeamRevealer", libGame_gv_players[lv_owner].lv_heroUnit, 1);
        UnitBehaviorSetDurationRemaining(lv_target, "ArtanisSpearofAdunPurifierBeamTargeting", lv_timeRemaining);
        UnitBehaviorSetDurationRemaining(lv_target, "ArtanisSpearofAdunPurifierBeamRevealer", lv_timeRemaining);
    }

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

        UnitBehaviorAdd(lv_target, "ArtanisSpearofAdunPurifierBeamRevealer", libGame_gv_players[lv_owner].lv_heroUnit, 1);
        UnitBehaviorSetDurationRemaining(lv_target, "ArtanisSpearofAdunPurifierBeamTargeting", lv_timeRemaining);
        UnitBehaviorSetDurationRemaining(lv_target, "ArtanisSpearofAdunPurifierBeamRevealer", lv_timeRemaining);
    }
    return true;

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

    }

    UnitBehaviorSetDurationRemaining(lv_unit, "BarbarianWrathoftheBerserkerBase", (lv_currentDuration + (lv_regenAmount / 10.0)));
    return true;
}

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

        if ((UnitBehaviorDuration(lv_target, lv_triggeringPoison) < 6.0)) {
            lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 3.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", lv_timeDifferenceToNextThreshold);
        }
        else {

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

            if ((UnitBehaviorDuration(lv_target, lv_triggeringPoison) < 9.0)) {
                lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 6.0);
                UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", 6.0);
                UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual3", lv_timeDifferenceToNextThreshold);
            }

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

                lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 6.0);
                UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", 6.0);
                UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual3", lv_timeDifferenceToNextThreshold);
            }

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

        }
        if ((UnitBehaviorDurationTotal(lv_target, lv_triggeringPoison) > 9.0)) {
            UnitBehaviorSetDurationRemaining(lv_target, lv_triggeringPoison, 9.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual3", 3.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", 6.0);

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

        if ((UnitBehaviorDurationTotal(lv_target, lv_triggeringPoison) > 9.0)) {
            UnitBehaviorSetDurationRemaining(lv_target, lv_triggeringPoison, 9.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual3", 3.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", 6.0);
            UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual1", 9.0);

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

    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:6800

    }
    else {
        UnitBehaviorSetDurationRemaining(libGame_gv_players[lp_respawningPlayer].lv_heroUnit, "Dead", lp_newRespawnTimerDuration);
    }
    TimerStart(libGame_gv_players[lp_respawningPlayer].lv_respawnTimer, lp_newRespawnTimerDuration, false, c_timeGame);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1248


            UnitBehaviorAdd(lv_newUnit, "JungleCreepPassive", lv_newUnit, 1);
            UnitBehaviorSetDurationRemaining(lv_newUnit, "JungleMercDefenderBirthInvulnerability", (UnitBehaviorDuration(lv_newUnit, "JungleMercDefenderBirthInvulnerability") - lv_StaggeredBirth));
            lv_StaggeredBirth += libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderDefendersStaggeredBirthPeriod;
            Wait(libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderDefendersStaggeredBirthPeriod, c_timeGame);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:6220

    UnitBehaviorAdd(UnitLastCreated(), "MapMechanicCoolUp", UnitLastCreated(), 1);
    UnitBehaviorSetDuration(UnitLastCreated(), "MapMechanicCoolUp", (libMapM_gv_mMRavenSpawnWarningTimerTime_C+.5));
    UnitBehaviorSetDurationRemaining(UnitLastCreated(), "MapMechanicCoolUp", (libMapM_gv_mMRavenSpawnWarningTimerTime_C+.5));
    AddUnitOfInterest(UnitLastCreated(), 500.0, 0.0, "Tribute", libNtve_ge_GoalTeam_Both, 0);
    TimerStart(libMapM_gv_mMRavenTributeSpawnTimer, libMapM_gv_mMRavenSpawnWarningTimerTime_C, false, c_timeGame);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7477

    UnitBehaviorAdd(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
    UnitBehaviorSetDuration(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", lv_duration);
    UnitBehaviorSetDurationRemaining(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", lv_duration);
    auto91990493_var = 1;
    for ( ; auto91990493_var <= auto91990493_ae; auto91990493_var += 1 ) {

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:426

        libNtve_gf_MakeUnitInvulnerable(libMLBD_gv_mMBOEBosses[lv_itTeam], true);
        UnitSetState(libMLBD_gv_mMBOEBosses[lv_itTeam], c_unitStateTargetable, false);
        UnitBehaviorSetDurationRemaining(libMLBD_gv_mMBOEBosses[lv_itTeam], "BossDuelCastingBehavior", 2.0);
    }
    while (!((UnitHasBehavior2(libMLBD_gv_mMBOEBosses[1], "BossDuelCastingBehavior") == false) && (UnitHasBehavior2(libMLBD_gv_mMBOEBosses[2], "BossDuelCastingBehavior") == false))) {

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:552

        UnitSetState(libMLBD_gv_mMBOEBosses[lv_itTeam], c_unitStateTargetable, false);
        UnitSetState(libMLBD_gv_mMBOEBosses[lv_itTeam], c_unitStateStatusBar, false);
        UnitBehaviorSetDurationRemaining(libMLBD_gv_mMBOEBosses[lv_itTeam], "BossDuelCastingBehavior", 1.5);
        UnitBehaviorAdd(libMLBD_gv_mMBOEBosses[lv_itTeam], "BossDuelTransitionBehavior", libMLBD_gv_mMBOEBosses[lv_itTeam], 1);
    }

mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmodbase.stormdata/LibOVER.galaxy:386

    }

    UnitBehaviorSetDurationRemaining(lv_targetUnit, "OverwatchBossImprisonedBehavior", (lv_bossEatingDuration + 0.0625));
    while ((UnitIsValid(lv_bossUnit) == true) && (TimerGetRemaining(lv_eatingTimer) > 0.0)) {
        if ((UnitTestState(lv_bossUnit, c_unitStateInStasis) == false)) {

mods/heroesmapmods/battlegroundmapmods/volskayadata.stormmodbase.stormdata/LibVolV.galaxy:176

    lv_pilotIndex = libMapM_gf_GetVehicleIndexOfUnit(EventUnit());
    UnitBehaviorSetDuration(libMapM_gv_vehicle[lv_pilotIndex].lv_unit_Vehicle, "VehicleDragonTimedLife", (libVolV_gv_vehicleStartingDuration+libVolV_gv_vehicleDurationIncrementAmount*TimerGetElapsed(libGame_gv_gameTimer)/60));
    UnitBehaviorSetDurationRemaining(libMapM_gv_vehicle[lv_pilotIndex].lv_unit_Vehicle, "VehicleDragonTimedLife", (libVolV_gv_vehicleStartingDuration+libVolV_gv_vehicleDurationIncrementAmount*TimerGetElapsed(libGame_gv_gameTimer)/60));
    CatalogFieldValueSet(c_gameCatalogAbil, "VolskayaVehicleActivateParticleCannon", "Range", libGame_gf_ComputerPlayerInTeam(lv_robotOwnerTeam), "20");
    libNtve_gf_SendActorMessageToUnit(libMapM_gv_vehicle[lv_pilotIndex].lv_unit_Vehicle, (("TimerSet " + FixedToString(((libVolV_gv_vehicleStartingDuration+libVolV_gv_vehicleDurationIncrementAmount*TimerGetElapsed(libGame_gv_gameTimer)/60) - 0.6875), c_fixedPrecisionAny) + " AlmostDead")));

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

        auto86D088E3_at = auto86D088E3_at + 0.0625;
    }
    UnitBehaviorSetDurationRemaining(lv_newTarget, "AlarakSadismRiteofRakShirTalentDebuff", lv_behaviorDuration);
    return true;
}

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

            UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_iPlayer], UnitGetPosition(libHAUR_gv_heroAurielResurrectLeoricUnit[lv_iPlayer]), false);
            UnitSetFacing(libHAUR_gv_heroAurielResurrectSpirit[lv_iPlayer], UnitGetFacing(libHAUR_gv_heroAurielResurrectLeoricUnit[lv_iPlayer]), 0.0);
            UnitBehaviorSetDurationRemaining(libHAUR_gv_heroAurielResurrectSpirit[lv_iPlayer], "AurielResurrectRezzable", (TimerGetRemaining(libGame_gv_players[lv_iPlayer].lv_respawnTimer) - lv_unrezzableTimeDifference));
            lv_deadLeorics += 1;
        }

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

        lv_timeToImpact = (lv_runeBombDistanceToCho / lv_runeBombSpeed);
        if ((UnitBehaviorDuration(lv_runeBomb, "ChoRuneBombTalentRollbackTimedLife") < lv_timeToImpact)) {
            UnitBehaviorSetDurationRemaining(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_gallUnit, "GallRunicBlastOrbActive", UnitBehaviorDuration(lv_runeBomb, "ChoRuneBombTalentRollbackTimedLife"));
        }
        else {

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

        }
        else {
            UnitBehaviorSetDurationRemaining(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_gallUnit, "GallRunicBlastOrbActive", lv_timeToImpact);
        }
        Wait(0.0625, c_timeGame);

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

    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/lucio.stormmodbase.stormdata/LibHLUC.galaxy:444

    while ((UnitHasBehavior2(lv_lucioUnit, "LucioReverseAmp") == true)) {
        if ((UnitBehaviorCount(lv_lucioUnit, "LucioReverseAmpNonstopRemixToken") >= 2)) {
            UnitBehaviorSetDurationRemaining(lv_lucioUnit, "LucioReverseAmp", (UnitBehaviorDuration(lv_lucioUnit, "LucioReverseAmp") + 0.0625));
        }

mods/heromods/probius.stormmodbase.stormdata/LibHPRO.galaxy:215

        UnitBehaviorAdd(lv_pylon, "ProbiusPylonOverchargeWeaponInitialCoolup", lv_probius, 1);
        UnitBehaviorAdd(lv_pylon, "ProbiusPylonOverchargeWeaponBehavior", lv_probius, 1);
        UnitBehaviorSetDurationRemaining(lv_pylon, "ProbiusPylonOverchargeWeaponBehavior", UnitBehaviorDuration(lv_probius, "ProbiusPylonOverchargeDummyUIBehavior"));
        UnitCreateEffectUnit(lv_probius, "ProbiusPylonOverchargeApplyPowerOverflowingSummonedUnitBuff", lv_pylon);
    }

mods/heromods/thefirelords.stormmodbase.stormdata/LibHMaj.galaxy:334

    UnitBehaviorSetDuration(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent)))));
    while ((UnitIsAlive(lv_bigRagnarosUnit) == true)) {
        UnitBehaviorSetDurationRemaining(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent))) * (UnitGetPropertyFixed(lv_bigRagnarosUnit, c_unitPropLifePercent, c_unitPropCurrent) / 100)));
        Wait(0.0625, c_timeGame);
    }

mods/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:502

    UnitBehaviorAdd(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_stunnedUnit, 1);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_durationRemaining);

mods/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:504

    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_durationRemaining);

mods/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:506

    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_durationRemaining);

mods/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:508

    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_durationRemaining);
    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_durationRemaining);
    return true;
}

mods/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:544


    UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
    UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_durationRemaining);
    return true;
}

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

        UnitAbilityAddCooldown(libCOMI_gv_cM_GlobalCasterUnit[lp_player], "HHBomberPlatformAreaBombTopBarDummyTimer", "Abil/HHBomberPlatformAreaBombTopBarDummyTimer", (-1.0 * (60.0 - lv_smallestCooldown)));
        UnitBehaviorAdd(libCOMI_gv_cM_GlobalCasterUnit[lp_player], "HHBomberPlatformAreaBombTopBarDummyTimer", libCOMI_gv_cM_GlobalCasterUnit[lp_player], 1);
        UnitBehaviorSetDurationRemaining(libCOMI_gv_cM_GlobalCasterUnit[lp_player], "HHBomberPlatformAreaBombTopBarDummyTimer", lv_smallestCooldown);
    }
    else {

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

    UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("LocustLaunch", 0), c_spendLocationUnit);
    UnitModifyCooldown(EventPlayerEffectUsedUnit(c_effectUnitCaster), "Abil/LocustLaunch", ((lv_cooldown * lv_multiplier) / 16.0), c_cooldownOperationSet);
    UnitBehaviorSetDurationRemaining(EventPlayerEffectUsedUnit(c_effectUnitCaster), "SwarmHostEggAnimation", ((lv_cooldown * lv_multiplier) / 16.0));
    return true;
}

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


    UnitBehaviorAdd(lv_unit, "TimeStopImmune", lv_unit, 1);
    UnitBehaviorSetDurationRemaining(lv_unit, "TimeStopImmune", 5.0);
    return true;
}

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

    lv_reviveTimer = UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer");
    lv_reviveTimer += lv_reviveTimerAdjustment;
    UnitBehaviorSetDurationRemaining(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer", lv_reviveTimer);
    UnitSetPropertyFixed(libCOMI_gv_cM_HeroReviver[EventPlayer()], c_unitPropLife, (UnitGetPropertyFixed(libCOMI_gv_cM_HeroReviver[EventPlayer()], c_unitPropLife, c_unitPropCurrent) + lv_healthAdjustment));
    PlayerAddCooldown(EventPlayer(), libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer())), lv_reviveTimerAdjustment);