# Unit Is Valid
Grammar — u is valid
Flags —Native
|Function
Returns true if a unit is valid.
# Arguments
unit
— Unit
Returns — bool
native bool UnitIsValid(unit inUnit);
# Related
Category: Unit / Basic
- Unit Show Kill Display —
void
— UnitShowKillDisplay - Unit Can Path To Point —
bool
— UnitPathableToPoint - Unit Can Path To Unit —
bool
— UnitPathableToUnit - Create Units With Default Facing —
void
— libNtve_gf_CreateUnitsWithDefaultFacing - Create Units With Point Facing —
void
— libNtve_gf_CreateUnitsAtPoint2 - Create Units Facing Angle —
unitgroup
— UnitCreate - Create Units Facing Point —
unitgroup
— libNtve_gf_UnitCreateFacingPoint - Last Created Unit —
unit
— UnitLastCreated - Last Created Units —
unitgroup
— UnitLastCreatedGroup - Original Caster Of Unit —
unit
— UnitGetOriginalCaster - Effect That Created Unit —
string
<gamelink::Effect> — UnitGetOriginalEffect - Replace Unit —
void
— libNtve_gf_ReplaceUnit - Last Replaced Unit —
unit
— libNtve_gf_LastReplacedUnit - Change Owner —
void
— UnitSetOwner - Unit Owner Changes —
void
— TriggerAddEventUnitChangeOwner - Old Unit Owner —
int
— EventUnitOwnerOld - New Unit Owner —
int
— EventUnitOwnerNew - Rescue Unit —
void
— libNtve_gf_RescueUnit - Rescue Unit Group —
void
— libNtve_gf_RescueUnit2 - Kill Unit —
void
— UnitKill - Revive Unit —
void
— UnitRevive - Remove Unit —
void
— UnitRemove - Owner Of Unit —
int
— UnitGetOwner - Unit Is Alive —
bool
— UnitIsAlive - Unit Is Valid —
bool
— UnitIsValid - Unit Group Is Dead —
bool
— libNtve_gf_UnitGroupIsDead - Move Unit Instantly —
void
— UnitSetPosition - Make Unit Face Angle —
void
— UnitSetFacing - Make Unit Face Point —
void
— libNtve_gf_MakeUnitFacePoint - Position Of Unit —
point
— UnitGetPosition - Goal Position Of Unit —
point
— UnitGetGoalPosition - Facing Angle Of Unit —
fixed
— UnitGetFacing - Pause/Unpause Unit —
void
— libNtve_gf_PauseUnit - Pause/Unpause All Units —
void
— UnitPauseAll - Sleep/WakeUp Unit —
void
— libNtve_gf_SleepUnit - Show/Hide Unit —
void
— libNtve_gf_ShowHideUnit - Share Vision of Unit —
void
— libNtve_gf_ShareVisionofUnit - Unit Is Paused —
bool
— libNtve_gf_UnitIsPaused - Unit Is Sleepiing —
bool
— libNtve_gf_UnitIsSleepiing - Unit Is Hidden —
bool
— libNtve_gf_UnitIsHidden - Unit Is Visible To Player —
bool
— libNtve_gf_UnitIsVisibleToPlayer - Set Unit Custom Value —
void
— UnitSetCustomValue - Custom Value Of Unit —
fixed
— UnitGetCustomValue - Unit Enters/Leaves Region —
void
— TriggerAddEventUnitRegion - Triggering Region —
region
— EventUnitRegion - Unit Enters/Leaves Point —
void
— TriggerAddEventUnitRangePoint - Unit Enters/Leaves Range Of Unit —
void
— TriggerAddEventUnitRange - Triggering Range Unit —
unit
— EventUnitRangeUnit - Unit In Region —
bool
— libNtve_gf_UnitInRegion - Triggering Unit —
unit
— EventUnit - Load Unit Model —
void
— UnitLoadModel - Unload Unit Model —
void
— UnitUnloadModel - Agent Of Player For Unit —
unit
— UnitAgent - Change Empty Unit Variables In Events —
void
— UnitEventSetNullVariableInvalid - Name of Unit —
text
— UnitGetName - Ideal Harvester Count —
int
— UnitIdealWorkerCount - Current Harvester Count —
int
— UnitCurrentWorkerCount
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4974
// Conditions
if (testConds) {
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7290
}
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7952
// Conditions
if (testConds) {
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2325
}
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7558
if (auto8F47EB42_var == null) { break; }
UnitIssueOrder(auto8F47EB42_var, Order(AbilityCommand("BurrowZerglingDown", 0)), c_orderQueueReplace);
if ((UnitIsValid(auto8F47EB42_var) == true) && (libNtve_gf_UnitIsVisibleToPlayer(auto8F47EB42_var, gv_p1_USER) == false) && (UnitIsAlive(auto8F47EB42_var) == true)) {
UnitRemove(auto8F47EB42_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:4974
// Conditions
if (testConds) {
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:7290
}
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:7952
// Conditions
if (testConds) {
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:2325
}
if (!((UnitIsValid(EventUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7558
if (auto8F47EB42_var == null) { break; }
UnitIssueOrder(auto8F47EB42_var, Order(AbilityCommand("BurrowZerglingDown", 0)), c_orderQueueReplace);
if ((UnitIsValid(auto8F47EB42_var) == true) && (libNtve_gf_UnitIsVisibleToPlayer(auto8F47EB42_var, gv_p1_USER) == false) && (UnitIsAlive(auto8F47EB42_var) == true)) {
UnitRemove(auto8F47EB42_var);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3173
}
if ((UnitIsValid(lv_dropPod) == true)) {
lv_dropPodLocation = UnitGetPosition(lv_dropPod);
lv_distance = (0.8 + ((IntToFixed((UnitGroupCount(lp_units, c_unitCountAlive) + 3)) / IntToFixed(lv_countPerLine)) * 0.8));
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4986
}
if (((libVCMI_gv_sOA_Recall_PrimaryNexus == null) || (libNtve_gf_UnitIsHidden(libVCMI_gv_sOA_Recall_PrimaryNexus) == true) || (!(UnitIsValid(libVCMI_gv_sOA_Recall_PrimaryNexus)) == true))) {
lv_closestNexus = libVCMI_gf_PM_FindPrimaryTownHall(1);
if ((lv_closestNexus != null)) {
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:382
}
target = UnitGroupUnit(scanGroup, RandomInt(1, count));
if (!UnitIsValid(target)) {
return null;
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:1535
}
if (!((UnitIsValid(lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()]) == true))) {
return false;
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:1582
}
if (!((UnitIsValid(lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()]) == true))) {
return false;
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:1624
}
if (!((UnitIsValid(lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()]) == true))) {
return false;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1203
lv_itTown = 1;
for ( ; ( (auto97110A1D_ai >= 0 && lv_itTown <= auto97110A1D_ae) || (auto97110A1D_ai < 0 && lv_itTown >= auto97110A1D_ae) ) ; lv_itTown += auto97110A1D_ai ) {
if ((UnitIsValid(libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit) == true)) {
UnitRemove(libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit);
libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit = null;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2531
}
if ((UnitIsValid(gv_targetDummyUnit[lv_i]) == true)) {
if ((gv_targetDummyHealthSnapshots[lv_i][0] < gv_targetDummyHealthSnapshots[lv_i][1])) {
if ((TimerGetElapsed(gv_targetDummyAnyDummyInCombatTimer) == 0.0)) {
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2613
lv_itDummy = 1;
for ( ; ( (autoCA115165_ai >= 0 && lv_itDummy <= autoCA115165_ae) || (autoCA115165_ai < 0 && lv_itDummy >= autoCA115165_ae) ) ; lv_itDummy += autoCA115165_ai ) {
if ((UnitIsValid(gv_targetDummyUnit[lv_itDummy]) == true)) {
UnitSetPropertyFixed(gv_targetDummyUnit[lv_itDummy], c_unitPropLifePercent, 100.0);
FloatingCombatElementCreateTextAtUnit(PlayerGroupAll(), "FloatingCombatElements/FloatingCombatAmountReadable", "", gv_targetDummyUnit[lv_itDummy], StringExternal("Param/Value/E6197E2C"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1531
VisRevealerDestroy(gv_cinematicRevealer);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(229823343), 7.0, -1, 10.0, true);
while (!((UnitIsValid(gv_tributeCutsceneUnit) == false))) {
Wait(0.25, c_timeGame);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1585
}
}
if ((UnitIsValid(UnitFromId(123)) == true)) {
UnitIssueOrder(UnitFromId(123), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupUnit(gv_orderCutsceneUnitGroup, 1)), c_orderQueueAddToEnd);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1589
}
if ((UnitIsValid(UnitFromId(121)) == true)) {
UnitIssueOrder(UnitFromId(121), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupUnit(gv_orderCutsceneUnitGroup, 3)), c_orderQueueAddToEnd);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:997
}
if ((UnitIsValid(gv_town_Structure_Array[lv_itStructureIndex].lv_unit) == true) && (UnitIsAlive(gv_town_Structure_Array[lv_itStructureIndex].lv_unit) == true)) {
UnitSetPropertyFixed(gv_town_Structure_Array[lv_itStructureIndex].lv_unit, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_town_Structure_Array[lv_itStructureIndex].lv_unit, c_unitPropEnergyPercent, 100.0);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:1319
}
if ((UnitIsValid(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit) == true) && (UnitIsAlive(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit) == true)) {
UnitSetPropertyFixed(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit, c_unitPropLifePercent, gv__1D_TownStructureInfo[lv_itStructureIndex].lv_healthPercent);
UnitSetPropertyFixed(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit, c_unitPropEnergyPercent, gv__1D_TownStructureInfo[lv_itStructureIndex].lv_energyPercent);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:3734
UnitSetFacing(libStEx_gv_hERO_FriendlyUther, PointGetFacing(PointFromId(772)), 0.0);
libNtve_gf_ChangeUnitDamage(libStEx_gv_hERO_FriendlyUther, libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
if ((UnitIsValid(gv__1A_GardenTerror) == false) && (gv__1A_PlayTimes != 0)) {
UnitCreate(1, "JunglePlantHorror", c_unitCreateIgnorePlacement, 15, PointFromId(819), PointGetFacing(PointFromId(819)), null);
gv__1A_GardenTerror = UnitLastCreated();
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:3739
}
if ((UnitIsValid(gv__1A_GardenTerror) == true)) {
UnitAbilityEnable(gv__1A_GardenTerror, "UnderworldBossStun", false);
UnitAbilityEnable(gv__1A_GardenTerror, "UnderworldBossRoots", false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:1203
lv_itTown = 1;
for ( ; ( (auto97110A1D_ai >= 0 && lv_itTown <= auto97110A1D_ae) || (auto97110A1D_ai < 0 && lv_itTown >= auto97110A1D_ae) ) ; lv_itTown += auto97110A1D_ai ) {
if ((UnitIsValid(libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit) == true)) {
UnitRemove(libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit);
libGame_gv_townTownData[lv_itTown].lv_lootBannerUnit = null;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2531
}
if ((UnitIsValid(gv_targetDummyUnit[lv_i]) == true)) {
if ((gv_targetDummyHealthSnapshots[lv_i][0] < gv_targetDummyHealthSnapshots[lv_i][1])) {
if ((TimerGetElapsed(gv_targetDummyAnyDummyInCombatTimer) == 0.0)) {
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2613
lv_itDummy = 1;
for ( ; ( (autoCA115165_ai >= 0 && lv_itDummy <= autoCA115165_ae) || (autoCA115165_ai < 0 && lv_itDummy >= autoCA115165_ae) ) ; lv_itDummy += autoCA115165_ai ) {
if ((UnitIsValid(gv_targetDummyUnit[lv_itDummy]) == true)) {
UnitSetPropertyFixed(gv_targetDummyUnit[lv_itDummy], c_unitPropLifePercent, 100.0);
FloatingCombatElementCreateTextAtUnit(PlayerGroupAll(), "FloatingCombatElements/FloatingCombatAmountReadable", "", gv_targetDummyUnit[lv_itDummy], StringExternal("Param/Value/E6197E2C"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1531
VisRevealerDestroy(gv_cinematicRevealer);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(229823343), 7.0, -1, 10.0, true);
while (!((UnitIsValid(gv_tributeCutsceneUnit) == false))) {
Wait(0.25, c_timeGame);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1585
}
}
if ((UnitIsValid(UnitFromId(123)) == true)) {
UnitIssueOrder(UnitFromId(123), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupUnit(gv_orderCutsceneUnitGroup, 1)), c_orderQueueAddToEnd);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1589
}
if ((UnitIsValid(UnitFromId(121)) == true)) {
UnitIssueOrder(UnitFromId(121), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupUnit(gv_orderCutsceneUnitGroup, 3)), c_orderQueueAddToEnd);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:997
}
if ((UnitIsValid(gv_town_Structure_Array[lv_itStructureIndex].lv_unit) == true) && (UnitIsAlive(gv_town_Structure_Array[lv_itStructureIndex].lv_unit) == true)) {
UnitSetPropertyFixed(gv_town_Structure_Array[lv_itStructureIndex].lv_unit, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_town_Structure_Array[lv_itStructureIndex].lv_unit, c_unitPropEnergyPercent, 100.0);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:1319
}
if ((UnitIsValid(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit) == true) && (UnitIsAlive(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit) == true)) {
UnitSetPropertyFixed(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit, c_unitPropLifePercent, gv__1D_TownStructureInfo[lv_itStructureIndex].lv_healthPercent);
UnitSetPropertyFixed(gv__1D_TownStructureInfo[lv_itStructureIndex].lv_unit, c_unitPropEnergyPercent, gv__1D_TownStructureInfo[lv_itStructureIndex].lv_energyPercent);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:3734
UnitSetFacing(libStEx_gv_hERO_FriendlyUther, PointGetFacing(PointFromId(772)), 0.0);
libNtve_gf_ChangeUnitDamage(libStEx_gv_hERO_FriendlyUther, libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
if ((UnitIsValid(gv__1A_GardenTerror) == false) && (gv__1A_PlayTimes != 0)) {
UnitCreate(1, "JunglePlantHorror", c_unitCreateIgnorePlacement, 15, PointFromId(819), PointGetFacing(PointFromId(819)), null);
gv__1A_GardenTerror = UnitLastCreated();
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:3739
}
if ((UnitIsValid(gv__1A_GardenTerror) == true)) {
UnitAbilityEnable(gv__1A_GardenTerror, "UnderworldBossStun", false);
UnitAbilityEnable(gv__1A_GardenTerror, "UnderworldBossRoots", false);
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2213
if ((UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_templeIndex].lv_temple) != libCore_gv_cOMPUTER_Neutral)) {
lv_testTargets = UnitGroupFilterAlliance(lv_validTargets, UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_templeIndex].lv_beacon), c_unitAllianceAlly, 0);
if ((UnitIsValid(lv_currentOrderTarget) == true) && (UnitGroupHasUnit(lv_testTargets, lv_currentOrderTarget) == true)) {
lv_bestTarget = lv_currentOrderTarget;
}
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2221
}
if ((UnitIsValid(lv_bestTarget) != true)) {
lv_testTargets = UnitGroupFilterRegion(lv_validTargets, libAIAI_gf_DefenderAgroRegion(lv_defenderAIIndex), 0);
lv_bestTarget = UnitGroupClosestToPoint(lv_testTargets, UnitGetPosition(lv_creepUnit));
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2226
}
if ((UnitIsValid(lv_bestTarget) != true)) {
if ((UnitIsValid(lv_currentOrderTarget) == true) && (UnitGroupHasUnit(lv_validTargets, lv_currentOrderTarget) == true)) {
lv_bestTarget = lv_currentOrderTarget;
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2227
if ((UnitIsValid(lv_bestTarget) != true)) {
if ((UnitIsValid(lv_currentOrderTarget) == true) && (UnitGroupHasUnit(lv_validTargets, lv_currentOrderTarget) == true)) {
lv_bestTarget = lv_currentOrderTarget;
}
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:136
// Automatic Variable Declarations
// Implementation
if ((UnitFilterMatch(lp_unit, UnitGetOwner(lp_unit), UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterHallucination - 32)))) == true) && (UnitIsValid(lp_unit) == true) && (UnitGetType(lp_unit) != "HeroLostVikingsController") && (UnitHasBehavior2(lp_unit, "LeoricUndying") == false)) {
return true;
}
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:2095
UnitKill(libAMVS_gv_mech);
if ((UnitIsValid(libVLSK_gv_capturePoints[1].lv_minimapIconUnit) == true)) {
UnitRemove(libVLSK_gv_capturePoints[1].lv_minimapIconUnit);
}
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:2099
}
if ((UnitIsValid(libAMVS_gv_mapUnit) == true)) {
UnitRemove(libAMVS_gv_mapUnit);
}
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:2152
UnitRemove(autoCE44E7F3_var);
}
if ((UnitIsValid(libAMVS_gv_elevatorPathingBlockerUnit) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "ElevatorPathingBlocker", 0, libCore_gv_cOMPUTER_Neutral, libAMVS_gv_centerPoint, null);
libAMVS_gv_elevatorPathingBlockerUnit = UnitLastCreated();
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3237
}
if (((UnitIsValid(lv_target) == false) || (UnitIsAlive(lv_target) == false) || (libNtve_gf_UnitInRegion(lv_target, libPEB1_gv_archangelAreas[lp_areaIndex].lv_region) == false))) {
lv_targetUnits = UnitGroupAlliance(UnitGetOwner(lp_baneling), c_unitAllianceEnemy, libPEB1_gv_archangelAreas[lp_areaIndex].lv_region, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_target = UnitGroupClosestToPoint(lv_targetUnits, UnitGetPosition(lp_baneling));
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3240
lv_targetUnits = UnitGroupAlliance(UnitGetOwner(lp_baneling), c_unitAllianceEnemy, libPEB1_gv_archangelAreas[lp_areaIndex].lv_region, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_target = UnitGroupClosestToPoint(lv_targetUnits, UnitGetPosition(lp_baneling));
if ((UnitIsValid(lv_target) == true)) {
UnitIssueOrder(lp_baneling, OrderTargetingUnit(AbilityCommand("ArchangelSuperBanelingChase", 0), lv_target), c_orderQueueReplace);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:4969
}
if ((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitCaster)) == true)) {
lv_caster = EventPlayerEffectUsedUnit(c_effectUnitCaster);
UnitCreateAIThinkTree(lv_caster);
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:5780
}
if ((UnitIsValid(libPEB1_gv_murkyEggUnit) == true)) {
libGame_gf_HeroDeathRespawnHeroforPlayer(false, UnitGetOwner(libPEB1_gv_murkyEggUnit), UnitGetPosition(libPEB1_gv_murkyEggUnit), 100);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6515
libPEB1_gf_ApplyMurkyTalents(libPVEM_gf_PvENPCHeroSpawnedPlayer());
TriggerExecute(libPEB1_gt_MurkyAI, true, false);
while (!((UnitIsValid(libGame_gv_heroDeathMurkyRespawnEggs[libPVEM_gf_PvENPCHeroSpawnedPlayer()]) == true))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6643
for ( ; ( (auto4B625413_ai >= 0 && lv_itHero <= auto4B625413_ae) || (auto4B625413_ai < 0 && lv_itHero >= auto4B625413_ae) ) ; lv_itHero += auto4B625413_ai ) {
if ((libPEB1_gv_zergHeroes[lv_itHero].lv_hero == lv_killedHero)) {
if ((libPEB1_gv_zergHeroes[lv_itHero].lv_hero == "Murky") && (UnitIsValid(libPEB1_gv_murkyEggUnit) == true)) {
TextExpressionSetToken("Param/Expression/lib_PEB1_37F509BA", "A", lv_killingPlayerName);
TextExpressionSetToken("Param/Expression/lib_PEB1_37F509BA", "B", lv_killingPlayerUnitName);
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:11903
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:918
libPEB1_gf_ApplyMurkyTalents(lv_playerID);
UnitCopyAIThinkTree(libPEB1_gv_pVEAIDummyMurky, lp_boss);
while (!((UnitIsValid(libGame_gv_heroDeathMurkyRespawnEggs[lv_playerID]) == true))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:1015
for ( ; ( (auto0B6F865E_ai >= 0 && lv_reviveIndex <= auto0B6F865E_ae) || (auto0B6F865E_ai < 0 && lv_reviveIndex >= auto0B6F865E_ae) ) ; lv_reviveIndex += auto0B6F865E_ai ) {
if ((libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_reviveIndex].lv_hero == "Murky")) {
if (((UnitIsAlive(libPVEB_gf_PBNPCHeroUnit(libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_reviveIndex].lv_hero)) == true) || (UnitIsValid(libPEB1_gv_pvEMurkyEggUnit) == true))) {
lv_zergHeroesAlive += 1;
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:1045
lv_orderIndex = 1;
for ( ; ( (autoCC7198AF_ai >= 0 && lv_orderIndex <= autoCC7198AF_ae) || (autoCC7198AF_ai < 0 && lv_orderIndex >= autoCC7198AF_ae) ) ; lv_orderIndex += autoCC7198AF_ai ) {
if (((libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_orderArray[lv_orderIndex]].lv_hero != "Murky") || (UnitIsValid(libPEB1_gv_pvEMurkyEggUnit) == false)) && (libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_orderArray[lv_orderIndex]].lv_active == true) && (UnitIsAlive(libPVEB_gf_PBNPCHeroUnit(libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_orderArray[lv_orderIndex]].lv_hero)) == false) && (TimerGetRemaining(libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_orderArray[lv_orderIndex]].lv_respawnTimer) < 0.1)) {
if ((lv_zergHeroEventTimerStarted == false)) {
lv_zergHeroEventTimerStarted = true;
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4500
}
if ((UnitIsValid(libPEB1_gv_pvEMurkyEggUnit) == true)) {
libGame_gf_HeroDeathRespawnHeroforPlayer(false, UnitGetOwner(libPEB1_gv_pvEMurkyEggUnit), UnitGetPosition(libPEB1_gv_pvEMurkyEggUnit), 100);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:5124
libPEB1_gf_ApplyMurkyTalents(libPVEB_gf_NPCHeroSpawnedPlayer());
UnitCopyAIThinkTree(libPEB1_gv_pVEAIDummyMurky, libPVEB_gf_NPCHeroSpawnedUnit());
while (!((UnitIsValid(libGame_gv_heroDeathMurkyRespawnEggs[libPVEB_gf_NPCHeroSpawnedPlayer()]) == true))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:5217
for ( ; ( (auto4B625413_ai >= 0 && lv_itHero <= auto4B625413_ae) || (auto4B625413_ai < 0 && lv_itHero >= auto4B625413_ae) ) ; lv_itHero += auto4B625413_ai ) {
if ((libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_itHero].lv_hero == lv_killedHero)) {
if ((libPEB1_gv_zergHeroes[libPEB1_gv_currentStage][lv_itHero].lv_hero == "Murky") && (UnitIsValid(libPEB1_gv_pvEMurkyEggUnit) == true)) {
TextExpressionSetToken("Param/Expression/lib_PEB1_37F509BA", "A", PlayerName(libGame_gf_HeroKilledKillingPlayer()));
TextExpressionSetToken("Param/Expression/lib_PEB1_37F509BA", "B", UnitGetName(libGame_gv_players[libGame_gf_HeroKilledKillingPlayer()].lv_heroUnit));
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:6857
}
if ((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true)) {
UnitSetFacing(EventPlayerEffectUsedUnit(c_effectUnitTarget), RandomFixed(0.0, 360.0), 0.0);
libPEB1_gf_PZETurnOnOffZergMinionAI(EventPlayerEffectUsedUnit(c_effectUnitTarget), true);
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:11036
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2315
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2380
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1870
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1933
// Conditions
if (testConds) {
if (!((UnitIsValid(EventPlayerEffectUsedUnit(c_effectUnitTarget)) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:656
if ((libAIAI_gf_DefendersAreFighting(lp_defenderAIIndex) == true) && ((libAIAI_gv_defenderAI[lp_defenderAIIndex].lv_fightStartTime + libAIAI_gv_aIDefenderMinTimeBeforeCasting) < TimerGetElapsed(libGame_gv_gameTimer))) {
if ((UnitGetType(lv_creepUnit) == "MercDefenderRangedMage")) {
if ((UnitGetCooldown(lv_creepUnit, "Abil/KnightMagicVolley") <= 0.0) && (UnitIsValid(lv_currentOrderTarget) == true) && (libNtve_gf_UnitIsVisibleToPlayer(lv_currentOrderTarget, UnitGetOwner(lv_creepUnit)) == true) && (DistanceBetweenPoints(UnitGetPosition(lv_creepUnit), UnitGetPosition(lv_currentOrderTarget)) <= 7.0)) {
UnitIssueOrder(lv_creepUnit, OrderTargetingUnit(AbilityCommand("KnightMagicVolley", 0), lv_currentOrderTarget), c_orderQueueReplace);
libAIAI_gv_defenderAICreepNeedsNewOrder = false;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:900
lv_itDefenderIndex = 1;
for ( ; ( (autoCFA266D0_ai >= 0 && lv_itDefenderIndex <= autoCFA266D0_ae) || (autoCFA266D0_ai < 0 && lv_itDefenderIndex >= autoCFA266D0_ae) ) ; lv_itDefenderIndex += autoCFA266D0_ai ) {
if (((UnitIsValid(libAIAI_gv_defenderAI[lp_defenderAIIndex].lv_defenderUnits[lv_itDefenderIndex]) == false) || (UnitIsAlive(libAIAI_gv_defenderAI[lp_defenderAIIndex].lv_defenderUnits[lv_itDefenderIndex]) == false))) {
lv_unitIndex = lv_itDefenderIndex;
break;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1369
libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled = false;
UnitIssueOrder(libAIAI_gv_aIHeroes[lp_trigPlayer].lv_currentHeroUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
if ((UnitIsValid(libGame_gv_players[lp_trigPlayer].lv_activeVehicle) == true)) {
libAIAI_gf_MinionAIUnhookUnitFromMinionAI(libGame_gv_players[lp_trigPlayer].lv_activeVehicle);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1922
// Implementation
if ((UnitIsValid(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core) == true)) {
libAIAI_gf_HeroAISetupUnitDangerTracking(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core);
AILaneUnitCreated(0, libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core, libNtve_ge_LaneUnitType_Core);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1927
}
if ((UnitIsValid(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core) == true)) {
libAIAI_gf_HeroAISetupUnitDangerTracking(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core);
AILaneUnitCreated(0, libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core, libNtve_ge_LaneUnitType_Core);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1938
lv_structureIndex = 1;
for ( ; ( (auto12EF4BF9_ai >= 0 && lv_structureIndex <= auto12EF4BF9_ae) || (auto12EF4BF9_ai < 0 && lv_structureIndex >= auto12EF4BF9_ae) ) ; lv_structureIndex += auto12EF4BF9_ai ) {
if ((UnitIsValid(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex]) == true)) {
auto3CA7C960_val = libGame_gv_townTownData[lv_townIndex].lv_structureTypes[lv_structureIndex];
if (auto3CA7C960_val == libGame_ge_TownStructureTypes_Moonwell) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1999
}
if ((UnitIsValid(libAIAI_gv_aIHeroes[lp_trigPlayer].lv_currentHeroUnit) == false)) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3062
}
if ((lv_currentState != libGDHL_ge_MishaState_Fighting) && ((libGDHL_gv_commandMishaTargetUnit[lv_player] != null) || ((OrderGetAbilityCommand(UnitOrder(lv_misha, 0)) == AbilityCommand("attack", 0)) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (lv_autoAquired != true)))) {
lv_currentState = libGDHL_ge_MishaState_Fighting;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3098
auto3742AA88_val = lv_currentState;
if (auto3742AA88_val == libGDHL_ge_MishaState_Searching) {
if ((UnitIsValid(libGDHL_gv_heroRexxarMishaPursuitTarget[lv_player]) == true) && (libNtve_gf_UnitIsVisibleToPlayer(libGDHL_gv_heroRexxarMishaPursuitTarget[lv_player], lv_player) == true)) {
libGDHL_gv_heroRexxarMishaLastKnownTargetLocation[lv_player] = UnitGetPosition(libGDHL_gv_heroRexxarMishaPursuitTarget[lv_player]);
libGDHL_gv_commandMishaTargetUnit[lv_player] = libGDHL_gv_heroRexxarMishaPursuitTarget[lv_player];
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3121
}
else if (auto3742AA88_val == libGDHL_ge_MishaState_Fighting) {
if ((UnitIsValid(libGDHL_gv_commandMishaTargetUnit[lv_player]) == true) && (UnitTestState(libGDHL_gv_commandMishaTargetUnit[lv_player], c_unitStateTargetable) == true) && ((UnitFilterMatch(libGDHL_gv_commandMishaTargetUnit[lv_player], lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly) | (1 << c_targetFilterStructure), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) || (UnitFilterMatch(libGDHL_gv_commandMishaTargetUnit[lv_player], lv_player, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly) | (1 << c_targetFilterImmuneToSkillshots), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterInvulnerable - 32)))) == true))) {
if ((OrderGetTargetUnit(UnitOrder(lv_misha, 0)) != libGDHL_gv_commandMishaTargetUnit[lv_player])) {
UnitIssueOrder(lv_misha, OrderTargetingUnit(AbilityCommand("attack", 0), libGDHL_gv_commandMishaTargetUnit[lv_player]), c_orderQueueReplace);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133
}
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3152
else {
lv_autoAquired = true;
if ((UnitOrderCount(lv_rexxar) != 0) && (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("RexxarSpiritSwoop", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("RexxarUnleashTheBoars", 0)) && (UnitGetType(OrderGetTargetItem(UnitOrder(lv_rexxar, 0))) != "RexxarFlare") && (OrderGetTargetPosition(UnitOrder(lv_rexxar, 0)) != Point(0.0, 0.0)) && (DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) <= 3.0) && ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("attack", 0)) || (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == false))) {
UnitAbilityEnable(lv_misha, "attack", true);
libGDHL_gf_HeroRexxarOrderMishaMoveNearPoint(lv_rexxar, lv_misha, OrderGetTargetPosition(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3211
lv_autoAquired = false;
}
if ((UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == false)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCommandRemoveTargetPriorityBuffSearch", lv_rexxar);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3274
}
else {
if (((UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_misha, 0))) == true) || (OrderGetAbilityCommand(UnitOrder(lv_misha, 0)) == AbilityCommand("attack", 0)))) {
UnitIssueOrder(lv_misha, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3315
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0)))) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
if ((UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
lv_autoAquired = false;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3984
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lp_george, 0)) != AbilityCommand("WitchDoctorGargantuanStompCommand", 0)) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lp_george, 0))) == true) && ((DistanceBetweenPoints(UnitGetPosition(lp_george), lp_castPosition) > libGDHL_gv_witchDoctor_Gargantuan_LeashRange_C) || (UnitHasBehavior2(OrderGetTargetUnit(UnitOrder(lp_george, 0)), "LeoricUndying") == true) || (UnitHasBehavior2(OrderGetTargetUnit(UnitOrder(lp_george, 0)), "UtherEternalVanguardRezDelay") == true) || (UnitHasBehavior2(OrderGetTargetUnit(UnitOrder(lp_george, 0)), "TyraelArchangelsWrathDeathActiveBuff") == true) || (libAIAI_gf_AIUnitBehindEnemyGateEstimate(UnitGetPosition(lp_george), UnitGetOwner(lp_witchDoctor), OrderGetTargetUnit(UnitOrder(lp_george, 0))) == true))) {
UnitGroupRemove(libGDHL_gv_heroWitchDoctorGargantuanAggroGroup[lp_player], OrderGetTargetUnit(UnitOrder(lp_george, 0)));
UnitIssueOrder(lp_george, OrderTargetingPoint(AbilityCommand("move", 0), lp_castPosition), c_orderQueueReplace);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:5416
UnitIssueOrder(lv_locustUnit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_effectSource), 1.5, UnitGetFacing(lv_effectSource))), c_orderQueueAddToFront);
Wait(0.5, c_timeGame);
if ((UnitIsValid(lv_locustUnit) == true) && (lv_locustUnitOwner > 0) && (lv_locustUnitOwner <= libCore_gv_bALMaxPlayers)) {
UnitCreateAIThinkTree(lv_locustUnit);
}
mods/heroesdata.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:10310
// Implementation
lv_heroUnit = libGame_gv_players[lp_player].lv_heroUnit;
if ((UnitIsValid(lv_heroUnit) == false)) {
return ;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:11862
}
if ((UnitIsValid(libGDHL_gv_rexxarMishaUnit[lp_player]) == true)) {
UnitSetPosition(libGDHL_gv_rexxarMishaUnit[lp_player], UnitGetPosition(lv_heroUnit), false);
UnitIssueOrder(libGDHL_gv_rexxarMishaUnit[lp_player], Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:11875
lv_petTypeIndex = 1;
for ( ; ( (autoD4AD6D45_ai >= 0 && lv_petTypeIndex <= autoD4AD6D45_ae) || (autoD4AD6D45_ai < 0 && lv_petTypeIndex >= autoD4AD6D45_ae) ) ; lv_petTypeIndex += autoD4AD6D45_ai ) {
if ((UnitIsValid(lv_petUnit) == true) && (UnitGetType(lv_petUnit) == libGame_gv_teleporters_PetList[lv_petTypeIndex]) && (DistanceBetweenPoints(UnitGetPosition(lv_petUnit), lp_preTeleportLocation) <= 8.0)) {
UnitSetPosition(lv_petUnit, UnitGetPosition(lv_heroUnit), false);
UnitIssueOrder(lv_petUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14681
// Conditions
if (testConds) {
if (!((UnitIsValid(lv_timeStopEndingUnit) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14704
Wait(0.25, c_timeGame);
if ((UnitGetMoverLink(lv_timeStopEndingUnit) == "Ground") && (UnitIsValid(lv_timeStopEndingUnit) == true)) {
UnitCreateEffectUnit(lv_timeStopEndingUnit, "HeroGenericMissileInterruptLaunchMissileSource", lv_timeStopEndingUnit);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15259
lv_playerIterator = 1;
for ( ; lv_playerIterator <= auto4E466BEE_ae ; lv_playerIterator += 1 ) {
if ((UnitIsValid(libGame_gv_players[lv_playerIterator].lv_heroUnit) == true)) {
lv_allyUnitGroup = UnitGroupSearch(null, lv_playerIterator, UnitGetPosition(libGame_gv_players[lv_playerIterator].lv_heroUnit), libGame_gv_teamfightTrackingRadius, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterNeutral) | (1 << c_targetFilterEnemy) | (1 << c_targetFilterCreep) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
libGame_gv_teamfightTrackingNearbyAllyCount[lv_playerIterator] = UnitGroupCount(lv_allyUnitGroup, c_unitCountAll);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18002
}
if ((UnitIsValid(lv_heroUnit) == false)) {
lv_heroUnit = libGame_gv_players[lv_player].lv_heroUnit;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18006
}
if ((UnitIsValid(lv_heroUnit) == false)) {
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18389
}
if (((UnitIsValid(EventUnit()) == false) || (lv_isHeroUnit == false))) {
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2793
// Implementation
if (((lp_location == null) || (UnitIsValid(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core) == false) || (UnitIsValid(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core) == false))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2793
// Implementation
if (((lp_location == null) || (UnitIsValid(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core) == false) || (UnitIsValid(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core) == false))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1901
if ((libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderDefendersCoweronDeath == true)) {
lv_spawnHelperUnit = UnitGroupRandomUnit(libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderCoweringDeadUnitGroup, c_unitCountAlive);
if ((UnitIsValid(lv_spawnHelperUnit) == true)) {
libNtve_gf_SendActorMessageToGameRegion(RegionCircle(UnitGetPosition(lv_spawnHelperUnit), 2.0), "Signal CreepCleanup");
UnitCreate(1, libMapM_gv_jungleCreepCamps[lp_camp].lv_mercSpawnedMinionUnitType[lv_i], c_unitCreateIgnorePlacement, lp_owner, UnitGetPosition(lv_spawnHelperUnit), UnitGetFacing(lv_spawnHelperUnit), null);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1573
while ((UnitIsAlive(lp_uther) == true) && (UnitIsAlive(lp_valla) == true) && (UnitIsAlive(lp_boss) == true)) {
lv_currentTargetOfBoss = OrderGetTargetUnit(UnitOrder(lp_boss, 0));
if ((UnitIsValid(lv_currentTargetOfBoss) == true)) {
if ((UnitGetPropertyFixed(lv_currentTargetOfBoss, c_unitPropLifePercent, c_unitPropCurrent) > 80.0) && (UnitGetPropertyFixed(lp_uther, c_unitPropEnergyPercent, c_unitPropCurrent) > 50.0)) {
UnitIssueOrder(lp_uther, OrderTargetingUnit(AbilityCommand("UtherHammerOfJustice", 0), lp_boss), c_orderQueueAddToFront);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1583
Wait(0.25, c_timeGame);
if ((UnitIsValid(lv_currentTargetOfBoss) == true) && (UnitGetPropertyFixed(lv_currentTargetOfBoss, c_unitPropLifePercent, c_unitPropCurrent) < 80.0)) {
UnitIssueOrder(lp_uther, OrderTargetingPoint(AbilityCommand("UtherHolyRadiance", 0), UnitGetPosition(lv_currentTargetOfBoss)), c_orderQueueAddToFront);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4684
lv_iterPlayer = 1;
for ( ; lv_iterPlayer <= auto1BAA646D_ae ; lv_iterPlayer += 1 ) {
if ((UnitIsValid(libGame_gv_players[lv_iterPlayer].lv_heroUnit) == true)) {
if ((UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit) > lv_highestXP)) {
lv_highestXP = UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4695
lv_iterPlayer = 1;
for ( ; lv_iterPlayer <= autoBE69E612_ae ; lv_iterPlayer += 1 ) {
if ((UnitIsValid(libGame_gv_players[lv_iterPlayer].lv_heroUnit) == true)) {
UnitXPSetCurrentXP(libGame_gv_players[lv_iterPlayer].lv_heroUnit, "HeroDummyVeterancy", lv_highestXP);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4747
lv_iterPlayer = 1;
for ( ; lv_iterPlayer <= auto5C858753_ae ; lv_iterPlayer += 1 ) {
if ((UnitIsValid(libGame_gv_players[lv_iterPlayer].lv_heroUnit) == true)) {
if ((UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit) >= lv_highestXP)) {
lv_highestXP = UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:3088
// Implementation
if ((UnitIsValid(lp_targetUnit) == false)) {
return ;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:3383
// Implementation
if (((UnitIsValid(lp_Unit) == true) && (libUIUI_gv_floatingCombatText_SuppressLeashingText == false))) {
FloatingCombatElementCreateTextAtUnit(PlayerGroupAll(), "FloatingCombatElements/FloatingCombatElementTemplate", "", lp_Unit, StringExternal("Param/Value/lib_UIUI_3BE6264C"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
}