# Duration Remaining Of Behavior On Unit
Grammar — Get behavior remaining duration on unit unit
Flags —Native
|Function
Gets a behavior remaining duration on a unit.
# Arguments
unit
— Unitstring
<gamelink::Behavior> — Behavior
Returns — fixed
native fixed UnitBehaviorDuration(
unit inUnit,
string inBehavior,
);
# Related
Category: Behavior / Basic
- Remove Behaviors By Category —
void
— UnitBehaviorRemoveCategory - Remove Behavior (Player) —
void
— UnitBehaviorRemovePlayer - Remove Behavior —
void
— UnitBehaviorRemove - Add Behavior (Player) —
void
— UnitBehaviorAddPlayer - Add Behavior —
void
— UnitBehaviorAdd - Set Behavior Count —
void
— libNtve_gf_SetBehaviorCount - Number Of Behaviors On Unit —
int
— UnitBehaviorCountAll - Unit Behavior —
string
<gamelink::Behavior> — UnitBehaviorGet - Unit Has Behavior —
bool
— UnitHasBehavior2 - Unit Has Behavior (Enabled) —
bool
— UnitHasBehavior - Unit Behavior Enabled —
bool
— UnitBehaviorEnabled - Stack Count Of Behavior On Unit —
int
— UnitBehaviorCount - Behavior Has Flag —
bool
— UnitBehaviorHasFlag - Transfer Behavior —
void
— UnitBehaviorTransfer - Set Unit Behavior Duration —
void
— UnitBehaviorSetDuration - Set Unit Behavior Duration Remaining —
void
— UnitBehaviorSetDurationRemaining - Duration Remaining Of Behavior On Unit —
fixed
— UnitBehaviorDuration - Duration Of Behavior On Unit —
fixed
— UnitBehaviorDurationTotal - Set Unit Behavior Spawn Count —
void
— UnitBehaviorSpawn - Unit Behavior Effect Player —
int
— UnitBehaviorEffectPlayer - Unit Behavior Effect Unit —
unit
— UnitBehaviorEffectUnit - Set Unit Behavior User Data —
void
— UnitBehaviorEffectTreeSetUserData - User Data Of Behavior On Unit —
fixed
— UnitBehaviorEffectTreeUserData - User Data Of Behavior On Unit Exists —
bool
— UnitBehaviorEffectTreeUserDataExists - Unit Behavior Changes —
void
— TriggerAddEventUnitBehaviorChange - Unit Behavior Changes From Category —
void
— TriggerAddEventUnitBehaviorChangeFromCategory - Triggering Behavior —
string
<gamelink::Behavior> — EventUnitBehavior - Triggering Behavior Change —
int
<preset::BehaviorChange> — EventUnitBehaviorChange - Unit Behavior Damage Modify Remaining —
fixed
— UnitBehaviorDamageModifyRemaining - Unit Behavior Damage Modify Limit —
fixed
— UnitBehaviorDamageModifyLimit - For Each Behavior On Unit — macro
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1034
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "Signal MoonwellDrink");
UnitGroupAdd(libGame_gv_moonwellTextTagsUnitGroup[lv_itPlayer], UnitLastCreated());
TextTagCreate((StringExternal("Param/Value/0159F0CD") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(UnitLastCreated()), 4.2, false, false, PlayerGroupSingle(lv_itPlayer));
autoB56D1635_var = 1;
for ( ; autoB56D1635_var <= autoB56D1635_ae; autoB56D1635_var += 1 ) {
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1087
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "Signal MoonwellDrink");
UnitGroupAdd(libGame_gv_moonwellTextTagsUnitGroup[lv_itPlayer], UnitLastCreated());
TextTagCreate((StringExternal("Param/Value/8050D234") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(UnitLastCreated()), 4.2, false, false, PlayerGroupSingle(lv_itPlayer));
autoE713E851_var = 1;
for ( ; autoE713E851_var <= autoE713E851_ae; autoE713E851_var += 1 ) {
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:1034
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "Signal MoonwellDrink");
UnitGroupAdd(libGame_gv_moonwellTextTagsUnitGroup[lv_itPlayer], UnitLastCreated());
TextTagCreate((StringExternal("Param/Value/0159F0CD") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(UnitLastCreated()), 4.2, false, false, PlayerGroupSingle(lv_itPlayer));
autoB56D1635_var = 1;
for ( ; autoB56D1635_var <= autoB56D1635_ae; autoB56D1635_var += 1 ) {
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:1087
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "Signal MoonwellDrink");
UnitGroupAdd(libGame_gv_moonwellTextTagsUnitGroup[lv_itPlayer], UnitLastCreated());
TextTagCreate((StringExternal("Param/Value/8050D234") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(UnitLastCreated()), 4.2, false, false, PlayerGroupSingle(lv_itPlayer));
autoE713E851_var = 1;
for ( ; autoE713E851_var <= autoE713E851_ae; autoE713E851_var += 1 ) {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.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.stormmod — base.stormdata/LibPEB1.galaxy:10166
if (lv_itPlayer<0) { break; }
if (((UnitGetType(libGame_gv_players[lv_itPlayer].lv_heroUnit) == "HeroUther") || (UnitGetType(libGame_gv_players[lv_itPlayer].lv_heroUnit) == "HeroTyrael"))) {
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff");
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10167
if (((UnitGetType(libGame_gv_players[lv_itPlayer].lv_heroUnit) == "HeroUther") || (UnitGetType(libGame_gv_players[lv_itPlayer].lv_heroUnit) == "HeroTyrael"))) {
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff");
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10170
}
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "UtherEternalVanguardRezDelay") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "UtherEternalVanguardRezDelay") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") + 1.5);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10171
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "UtherEternalVanguardRezDelay") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "UtherEternalVanguardRezDelay") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") + 1.5);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10174
}
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff");
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10175
if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") == true) && (UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") > lv_specialDeathStateWaitTime)) {
lv_specialDeathStateWaitTime = UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff");
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.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.stormmod — base.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/onelane/onelanemapshared.stormmod — base.stormdata/LibOLMS.galaxy:50
// Automatic Variable Declarations
// Implementation
TextExpressionSetToken("Param/Expression/lib_OLMS_6E84E410", "A", TextTimeFormat(StringToText("<min2/>:<sec2/>"), FixedToInt(UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe"))));
TextTagCreate(TextExpressionAssemble("Param/Expression/lib_OLMS_6E84E410"), 24, UnitGetPosition(lp_unit), 2.0, true, false, PlayerGroupAll());
while ((UnitHasBehavior2(lp_unit, "GenerateRegenGlobe") == true)) {
mods/heroesbrawlmods/brawlmapmods/onelane/onelanemapshared.stormmod — base.stormdata/LibOLMS.galaxy:53
TextTagCreate(TextExpressionAssemble("Param/Expression/lib_OLMS_6E84E410"), 24, UnitGetPosition(lp_unit), 2.0, true, false, PlayerGroupAll());
while ((UnitHasBehavior2(lp_unit, "GenerateRegenGlobe") == true)) {
TextExpressionSetToken("Param/Expression/lib_OLMS_EA11C855", "A", TextTimeFormat(StringToText("<min2/>:<sec2/>"), FixedToInt(UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe"))));
TextTagSetText(TextTagLastCreated(), TextExpressionAssemble("Param/Expression/lib_OLMS_EA11C855"));
Wait(1.0, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:2377
else {
}
if ((UnitBehaviorDuration(lp_unit, lp_behavior) >= UnitBehaviorDuration(lp_unit, lv_behavior))) {
auto6E46D1E8_val = UnitGetType(lp_unit);
if (auto6E46D1E8_val == "HeroOlaf") {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:2377
else {
}
if ((UnitBehaviorDuration(lp_unit, lp_behavior) >= UnitBehaviorDuration(lp_unit, lv_behavior))) {
auto6E46D1E8_val = UnitGetType(lp_unit);
if (auto6E46D1E8_val == "HeroOlaf") {
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:6243
lv_owner = UnitBehaviorEffectPlayer(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting", c_effectPlayerCaster, 0);
lv_timeRemaining = UnitBehaviorDuration(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting");
if ((libGame_gf_CheckUnitForAbilityRedirectBoolean() == true)) {
if ((DistanceBetweenPoints(UnitGetPosition(libGDHL_gv_heroArtanisSpearofAdunPurifierBeamUnit[lv_owner]), UnitGetPosition(lv_unit)) <= 6.0) && ((UnitBehaviorCount(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting") == 1) && (UnitBehaviorEffectUnit(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting", c_effectUnitSource, 0) == libGame_gv_players[lv_owner].lv_heroUnit))) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7380
}
lv_currentDuration = UnitBehaviorDuration(lv_unit, "BarbarianWrathoftheBerserkerBase");
if ((lv_effect == "BarbarianShotOfFuryRegenFuryModifyUnit")) {
lv_regenAmount = 50.0;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7673
lv_target = EventPlayerEffectUsedUnit(c_effectUnitTarget);
lv_butcher = EventPlayerEffectUsedUnit(c_effectUnitCaster);
lv_currentAmount = UnitBehaviorDuration(lv_target, "ButchersBrand");
// Actions
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:9429
if (((UnitHasBehavior2(lv_target, "IsPseudoStructure") == true) || (UnitTypeTestAttribute(UnitGetType(lv_target), c_unitAttributeHeroic) == true) || (UnitTypeTestAttribute(UnitGetType(lv_target), c_unitAttributeStructure) == true))) {
if ((UnitBehaviorDuration(lv_target, lv_triggeringPoison) < 6.0)) {
lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 3.0);
UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", lv_timeDifferenceToNextThreshold);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:9430
if (((UnitHasBehavior2(lv_target, "IsPseudoStructure") == true) || (UnitTypeTestAttribute(UnitGetType(lv_target), c_unitAttributeHeroic) == true) || (UnitTypeTestAttribute(UnitGetType(lv_target), c_unitAttributeStructure) == true))) {
if ((UnitBehaviorDuration(lv_target, lv_triggeringPoison) < 6.0)) {
lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 3.0);
UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", lv_timeDifferenceToNextThreshold);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:9434
}
else {
if ((UnitBehaviorDuration(lv_target, lv_triggeringPoison) < 9.0)) {
lv_timeDifferenceToNextThreshold = (UnitBehaviorDuration(lv_target, lv_triggeringPoison) - 6.0);
UnitBehaviorSetDurationRemaining(lv_target, "DryadNaturesToxinVisual2", 6.0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1470
// Implementation
lv_behaviorDuration = UnitBehaviorDuration(lp_unit, lp_cCBehavior);
if ((UnitBehaviorCount(lp_unit, "75PercentCCReduction") >= 1)) {
lv_percentReduction = libCore_gv_talents_RelentlessCCReduction75_C;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14397
}
else {
libUIUI_gf_FullscreenOverlaysCreateCCEffectFlashForPlayer(UnitGetOwner(lv_unit), UnitBehaviorDuration(lv_unit, lv_behavior));
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14516
lv_horizOffset = RandomFixed(-0.4, -0.6);
if ((EventUnit() == libGame_gv_players[UnitGetOwner(EventUnit())].lv_heroUnit)) {
libUIUI_gf_FullscreenOverlaysCreateCCEffectFlashForPlayer(UnitGetOwner(EventUnit()), UnitBehaviorDuration(EventUnit(), EventUnitBehavior()));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:17435
libGame_gf_CameraPanCameraForPlayerAndUpdateMapBoundsIfNecessary(lv_deadPlayer, UnitGetPosition(lv_deadUnit), 0.25, -1, 0.0, false);
libGame_gf_SendEventHeroEntersSpecialDeathState(lv_deadUnit);
if ((PlayerHasTalent(lv_deadPlayer, "UtherMasteryRedemption") == true) && (((UnitBehaviorDuration(lv_deadUnit, "RedemptionCooldown") <= (CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "UtherEternalVanguardRezDelay", "Duration", lv_deadPlayer) + lv_spiritOfRedemptionBuffDuration)) || (UnitBehaviorCount(lv_deadUnit, "RedemptionCarryBehavior") == 1)))) {
if ((UnitBehaviorCount(lv_deadUnit, "RedemptionCarryBehavior") == 0)) {
ActorCreate(ActorScopeFromUnit(lv_deadUnit), "RedemptionVisualModel", null, null, null);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18416
if (auto82B7B41C_var == null) { break; }
lv_index += 1;
TextTagCreate((StringExternal("Param/Value/lib_Game_3F1D7629") + FixedToText(UnitBehaviorDuration(auto82B7B41C_var, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(auto82B7B41C_var), 4.2, false, false, PlayerGroupSingle(UnitGetOwner(EventUnit())));
libGame_gv_moonwellTextTags[UnitGetOwner(EventUnit())][lv_index] = TextTagLastCreated();
libGame_gv_moonwellTextTagsUnit[UnitGetOwner(EventUnit())][lv_index] = auto82B7B41C_var;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18493
if ((UnitIsAlive(libGame_gv_moonwellTextTagsUnit[lv_itPlayer][auto67CB488E_var]) == true)) {
TextTagShow(lv_textTag, PlayerGroupSingle(lv_itPlayer), true);
TextTagSetText(lv_textTag, (StringExternal("Param/Value/lib_Game_79F06999") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)));
}
else if ((lv_textTag != c_textTagNone)) {
mods/heroesdata.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7660
}
libUIUI_gf_MapMechanicsDragonShireSetRemainingDragonTime((FixedToInt(UnitBehaviorDuration(libMapM_gv_mMGardensDragonUnit, "VehicleDragonTimedLife")) + 1));
lv_lastState = lv_state;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4209
}
else {
if ((UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, lp_newBehavior) >= UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lv_player]))) {
libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lv_player] = lp_newBehavior;
libNtve_gf_SetDialogItemBehavior(libUIUI_gv_heroConsoleUnitStatusBars.lv_stunDeathBarLeftBar, lp_newBehavior, libCore_gv_playerGroupFromPlayer[lv_player]);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4209
}
else {
if ((UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, lp_newBehavior) >= UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lv_player]))) {
libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lv_player] = lp_newBehavior;
libNtve_gf_SetDialogItemBehavior(libUIUI_gv_heroConsoleUnitStatusBars.lv_stunDeathBarLeftBar, lp_newBehavior, libCore_gv_playerGroupFromPlayer[lv_player]);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4242
// Implementation
lv_behaviorDurationRemaining = UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_StunDeath, libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lp_player]);
if ((lv_behaviorDurationRemaining > 0.0)) {
if ((lv_behaviorDurationRemaining < 32767.0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4255
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_stunDeathBarParentFrame, libCore_gv_playerGroupFromPlayer[lp_player], false);
}
lv_behaviorDurationRemaining = UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Behavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player]);
if ((lv_behaviorDurationRemaining <= 0.0)) {
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_behaviorChannelBarParentFrame, libCore_gv_playerGroupFromPlayer[lp_player], false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4260
}
lv_behaviorDurationRemaining = UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Behavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player]);
if ((lv_behaviorDurationRemaining <= 0.0)) {
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_behaviorChannelBarParentFrameRight, libCore_gv_playerGroupFromPlayer[lp_player], false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4276
// Implementation
lv_heroUnit = libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Channel;
if (((UnitBehaviorDuration(lv_heroUnit, lp_behavior) >= UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player])) || (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) > CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny)))) {
if ((libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player] != "") && (UnitBehaviorDurationTotal(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player]) > 0.0) && (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) < CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny))) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4276
// Implementation
lv_heroUnit = libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Channel;
if (((UnitBehaviorDuration(lv_heroUnit, lp_behavior) >= UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player])) || (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) > CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny)))) {
if ((libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player] != "") && (UnitBehaviorDurationTotal(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player]) > 0.0) && (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) < CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny))) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4298
// Implementation
lv_heroUnit = libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Channel;
if (((UnitBehaviorDuration(lv_heroUnit, lp_behavior) >= UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player])) || (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) > CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny)))) {
if ((libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player] != "") && (UnitBehaviorDurationTotal(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player]) > 0.0) && (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) < CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny))) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4298
// Implementation
lv_heroUnit = libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Channel;
if (((UnitBehaviorDuration(lv_heroUnit, lp_behavior) >= UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player])) || (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) > CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny)))) {
if ((libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player] != "") && (UnitBehaviorDurationTotal(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player]) > 0.0) && (CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny) < CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny))) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:4320
// Implementation
lv_heroUnit = lp_unit;
if ((UnitBehaviorDuration(lv_heroUnit, lp_behavior) >= UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player]))) {
libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player] = lp_behavior;
libNtve_gf_SetDialogItemBehavior(libUIUI_gv_heroConsoleUnitStatusBars.lv_behaviorChannelBarDurationBar, lp_behavior, libCore_gv_playerGroupFromPlayer[lp_player]);
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:2547
// Automatic Variable Declarations
// Implementation
TextExpressionSetToken("Param/Expression/lib_SCHO_D818FDB9", "A", TextTimeFormat(StringToText("<min2/>:<sec2/>"), FixedToInt(UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe"))));
TextTagCreate(TextExpressionAssemble("Param/Expression/lib_SCHO_D818FDB9"), 24, UnitGetPosition(lp_unit), 2.0, true, false, PlayerGroupAll());
while ((UnitHasBehavior2(lp_unit, "GenerateRegenGlobe") == true)) {
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:2550
TextTagCreate(TextExpressionAssemble("Param/Expression/lib_SCHO_D818FDB9"), 24, UnitGetPosition(lp_unit), 2.0, true, false, PlayerGroupAll());
while ((UnitHasBehavior2(lp_unit, "GenerateRegenGlobe") == true)) {
TextExpressionSetToken("Param/Expression/lib_SCHO_4B812242", "A", TextTimeFormat(StringToText("<min2/>:<sec2/>"), FixedToInt(UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe"))));
TextTagSetText(TextTagLastCreated(), TextExpressionAssemble("Param/Expression/lib_SCHO_4B812242"));
Wait(1.0, c_timeGame);
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:655
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "Signal MoonwellDrink");
UnitGroupAdd(libGame_gv_moonwellTextTagsUnitGroup[lv_itPlayer], UnitLastCreated());
TextTagCreate((StringExternal("Param/Value/lib_MTOD_3AE660F8") + FixedToText(UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown"), 0)), 20, UnitGetPosition(UnitLastCreated()), 4.2, false, false, PlayerGroupSingle(lv_itPlayer));
auto3F32C040_var = 1;
for ( ; auto3F32C040_var <= auto3F32C040_ae; auto3F32C040_var += 1 ) {
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2413
libNtve_gf_SendActorMessageToUnit(EventUnit(), "Signal PlayMorph");
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2414
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
libNtve_gf_SendActorMessageToUnit(EventUnit(), "Signal Upgrade");
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2515
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2516
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
libNtve_gf_SendActorMessageToUnit(EventUnit(), "Signal Upgrade");
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2573
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2574
if ((UnitHasBehavior2(EventUnit(), "StructureOwnershipChangeRepairBehavior") == true)) {
lv_repairBehaviorElapsed = (UnitBehaviorDurationTotal(EventUnit(), "StructureOwnershipChangeRepairBehavior") - UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior"));
lv_repairBehaviorRemaining = UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior");
if ((lv_repairBehaviorRemaining <= 0.125)) {
libNtve_gf_SendActorMessageToUnit(EventUnit(), "Signal Upgrade");
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:1195
DialogControlSetVisible(libVLSK_gv_volskayaUI.lv_robot_Container, PlayerGroupAll(), true);
while ((UnitIsAlive(lp_robotUnit) == true)) {
lv_timedLifeRemaining = (FixedToInt(UnitBehaviorDuration(lp_robotUnit, "VehicleDragonTimedLife")) + 1);
libNtve_gf_SetDialogItemText(libVLSK_gv_volskayaUI.lv_robot_TimeLabel, TextTimeFormat(StringToText("<mintotal/>:<sec2/>"), FixedToInt(lv_timedLifeRemaining)), PlayerGroupAll());
Wait(0.0625, c_timeGame);
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:1649
TriggerEnable(libVLSK_gt_PilotEntersRobotStartGunnerReminderTimer, false);
TriggerEnable(libVLSK_gt_GunnerEntersRobotStopGunnerReminderTimer, false);
if ((UnitBehaviorDuration(EventUnit(), "VehicleDragonTimedLife") > 0.0)) {
libVLSK_gf_PlayVORobotDestroyed();
}
mods/heromods/alarak.stormmod — base.stormdata/LibHALA.galaxy:593
}
lv_alarak = UnitBehaviorEffectUnit(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff", c_effectUnitSource, 0);
lv_behaviorDuration = UnitBehaviorDuration(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff");
libHALA_gv_heroAlarakRiteofRakShirActivelyTransferring[UnitGetOwner(lv_alarak)] = true;
UnitBehaviorAdd(lv_newTarget, "AlarakSadismRiteofRakShirSuppressVOX", lv_alarak, 1);
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:203
lv_runeBombDistanceToCho = DistanceBetweenPoints(UnitGetPosition(lv_runeBomb), UnitGetPosition(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_choUnit));
lv_timeToImpact = (lv_runeBombDistanceToCho / lv_runeBombSpeed);
if ((lv_timeToImpact > UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife"))) {
lv_timeToImpact = UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife");
}
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:204
lv_timeToImpact = (lv_runeBombDistanceToCho / lv_runeBombSpeed);
if ((lv_timeToImpact > UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife"))) {
lv_timeToImpact = UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife");
}
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:212
lv_runeBombDistanceToCho = DistanceBetweenPoints(UnitGetPosition(lv_runeBomb), UnitGetPosition(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_choUnit));
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"));
}
mods/heromods/chogall.stormmod — base.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.stormmod — base.stormdata/LibHCHO.galaxy:2043
lv_gallPlayer = libGDHL_gv_chogallPairs[libGame_gf_TeamNumberOfPlayer(UnitGetOwner(EventUnit()))].lv_gallPlayer;
libUIUI_gf_FullscreenOverlaysCreateCCEffectFlashForPlayer(lv_gallPlayer, UnitBehaviorDuration(lv_unit, lv_behavior));
return true;
}
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:373
lv_dVaMechUnit = UnitBehaviorEffectUnit(lv_dVaPilotUnit, "DVaPilotDisableCallMech", c_effectUnitCaster, 0);
lv_durationMax = UnitBehaviorDurationTotal(lv_dVaMechUnit, "DVaMechCallMechDisabler");
lv_durationRemain = UnitBehaviorDuration(lv_dVaMechUnit, "DVaMechCallMechDisabler");
if ((lv_durationRemain > 0.05)) {
lv_calculatedEnergyAmount = ((1.0 - (lv_durationRemain / lv_durationMax)) * 100.0);
mods/heromods/genji.stormmod — base.stormdata/LibHGen.galaxy:555
}
lv_duration = (UnitBehaviorDuration(lv_genjiUnit, "GenjiDragonbladeActive") + libHGen_gv_heroGenjiDragonbladeTheDragonBecomesMeDurationIncreaseIncrement);
lv_duration = MinF(lv_duration, 8.0);
UnitBehaviorSetDurationRemaining(lv_genjiUnit, "GenjiDragonbladeActive", lv_duration);
mods/heromods/guldan.stormmod — base.stormdata/LibHGUL.galaxy:448
lv_deadUnit = EventUnit();
lv_deadPlayer = EventPlayer();
UnitBehaviorSetDuration(lv_deadUnit, "Dead", UnitBehaviorDuration(lv_deadUnit, "Dead"));
libUIUI_gf_HeroConsoleUnitStatusBarsUpdateStunDeathBar("Dead", lv_deadPlayer);
return true;
mods/heromods/imperius.stormmod — base.stormdata/LibHIMP.galaxy:388
}
while ((UnitHasBehavior2(lv_wrathOfTheAngirisTargetUnit, "ImperiusWrathOfTheAngirisTargetRemovedStasis") == true) && (UnitBehaviorDuration(lv_wrathOfTheAngirisTargetUnit, "ImperiusWrathOfTheAngirisTargetRemovedStasis") > 0.125)) {
UnitSetPosition(lv_wrathOfTheAngirisTargetUnit, UnitGetPosition(lv_wrathOfTheAngirisImperiusUnit), true);
Wait(0.0625, c_timeGame);
mods/heromods/lucio.stormmod — base.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/medivh.stormmod — base.stormdata/LibHMDV.galaxy:759
}
while ((UnitBehaviorDuration(EventUnit(), "MedivhForceOfWill") > 0.0625)) {
Wait(0.0625, c_timeGame);
}
mods/heromods/probius.stormmod — base.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/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1317
lv_itUnit = UnitGroupUnitFromEnd(auto01A4FFB0_g, auto01A4FFB0_u);
if (lv_itUnit == null) { break; }
if ((OrderGetAbilityCommand(UnitOrder(lv_itUnit, 0)) != AbilityCommand("attack", 0)) && ((UnitTypeTestAttribute(UnitGetType(EventUnit()), c_unitAttributeCreep) == true) || (UnitBehaviorDuration(lv_itUnit, "SamuroMirrorImageTimedLife") >= 9.0)) && (DistanceBetweenPoints(UnitGetPosition(EventUnitTarget()), UnitGetPosition(lv_itUnit)) < 15.0) && (UnitHasBehavior2(lv_itUnit, "SylvanasMindControlTarget") == false)) {
UnitRestartAIThinkTree(lv_itUnit);
}
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:495
lv_duration = UnitBehaviorDurationTotal(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration");
lv_durationRemaining = UnitBehaviorDuration(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration");
if ((lv_durationRemaining <= 0.0)) {
return true;
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:538
lv_duration = UnitBehaviorDurationTotal(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration");
lv_durationRemaining = UnitBehaviorDuration(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration");
if ((lv_durationRemaining <= 0.0)) {
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5110
if ((UnitHasBehavior2(autoF73BCC8E_var, "HHBomberDockCooldown") == true)) {
lv_behaviorCount += 1;
if ((UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown") < lv_smallestCooldown)) {
lv_smallestCooldown = UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5111
lv_behaviorCount += 1;
if ((UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown") < lv_smallestCooldown)) {
lv_smallestCooldown = UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17275
// Automatic Variable Declarations
// Variable Initialization
lv_reviveTimer = UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer");
lv_needs = RoundI((lv_reviveTimer/(-libCOMI_gv_cM_DehakaEatReviveTimerAdjustment)));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17329
}
lv_reviveTimer = UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer");
lv_reviveTimer += lv_reviveTimerAdjustment;
UnitBehaviorSetDurationRemaining(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer", lv_reviveTimer);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:30302
lv_itPlayer = PlayerGroupNextPlayer(autoFF2C04E6_g, lv_itPlayer);
if (lv_itPlayer < 0) { break; }
lv_reviveTimer[lv_itPlayer] = UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[lv_itPlayer], "NovaReviveTimer");
lv_totalBuybackCost = (Round(lv_reviveTimer[lv_itPlayer]) * lv_reviveCostPerSecond);
CatalogFieldValueSet(c_gameCatalogAbil, "NovaReviveInstantBuyback", "Cost[" + IntToString(0) + "].Resource[" + IntToString(c_resourceTypeMinerals) + "]", lv_itPlayer, FixedToString(lv_totalBuybackCost, 0));