# Unit Behavior Effect Unit

Grammar — Get Effect location|Unit for behavior on unit
FlagsNative | Function

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior
  • int<preset::EffectUnit> — Location
  • int — Stack Index

Returns — unit

native unit UnitBehaviorEffectUnit(
	unit inUnit,
	string inBehavior,
	int inLocation,
	int inIndex,
);

Category: Behavior / Basic

# Examples

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

    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))) {
            libGDHL_gv_heroArtanisSpearofAdunPurifierBeamTarget[lv_owner] = lv_target;
        }

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

    }

    lv_beetle = UnitBehaviorEffectUnit(lv_deadHero, "AnubarakBeetleSpitDeathResponseBehavior", c_effectUnitCaster, 0);
    UnitCreateEffectUnit(lv_beetle, "AnubarakBeetleJuicedCreatePersistentSpecialDeathState", lv_deadHero);
    return true;

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

    lv_butcherPlayer = UnitBehaviorEffectPlayer(lv_unit, EventUnitBehavior(), c_effectPlayerCaster, 0);
    lv_target = lv_unit;
    lv_butcherPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_unit, "RuthlessOnslaughtTarget", c_effectUnitCaster, 0));
    SoundPlayForPlayer(SoundLink("Butcher_RuthlessOnslaught_Targeted_VICTIM", -1), lv_butcherPlayer, PlayerGroupSingle(UnitGetOwner(lv_target)), 100.0, 0.0);
    return true;

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

    }

    lv_heroGreymane = UnitBehaviorEffectUnit(lv_killTarget, "GreymaneGoForTheThroatDeathResponse", c_effectUnitCaster, 0);
    UnitCreateEffectUnit(lv_heroGreymane, "GreymaneGoForTheThroatKillSet", lv_heroGreymane);
    return true;

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_eTC = UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0);
    lv_stunnedUnit = EventUnit();

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

    }

    lv_medic = UnitBehaviorEffectUnit(lv_unit, "MedicSafeguardBuff", c_effectUnitCaster, 0);
    lv_medicPlayer = UnitGetOwner(lv_medic);
    if ((PlayerHasTalent(lv_medicPlayer, "MedicVanadiumPlating") == true)) {

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

    }

    lv_unit = UnitBehaviorEffectUnit(lv_killedUnit, "MuradinHaymakerGrandSlamTalentDeathMarker", c_effectUnitCaster, 0);
    UnitCreateEffectUnit(lv_unit, "MuradinHaymakerGrandSlamTalentModifyChargeCount", lv_unit);
    return true;

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

    lv_i = 0;
    for ( ; ( (auto534F8C5E_ai >= 0 && lv_i <= auto534F8C5E_ae) || (auto534F8C5E_ai < 0 && lv_i >= auto534F8C5E_ae) ) ; lv_i += auto534F8C5E_ai ) {
        lv_unit[lv_i] = UnitBehaviorEffectUnit(lv_killedUnit, "MuradinItsHammerTimeKillBonusBehavior", c_effectUnitCaster, lv_i);
        if ((UnitGetOwner(lv_unit[lv_i]) == lv_killingPlayer)) {
            UnitCreateEffectUnit(lv_unit[lv_i], "MuradinStormboltItsHammerTimeHeroKillModifyTokenCount", lv_unit[lv_i]);

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


    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeActivate)) {
        lv_caster = UnitBehaviorEffectUnit(lv_target, "NecromancerSpectralScytheMasteryMortalWoundDebuff", c_effectUnitCaster, 0);
        libGDHL_gv_heroNecromancerMortalWoundsCasterOwner[lv_ownerofTarget] = UnitGetOwner(lv_caster);
    }

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

    }
    else if ((EventUnitBehaviorChange() == c_unitBehaviorChangeRefresh)) {
        lv_caster = UnitBehaviorEffectUnit(lv_target, "NecromancerSpectralScytheMasteryMortalWoundDebuff", c_effectUnitCaster, 0);
        libGDHL_gv_heroNecromancerMortalWoundsCasterOwner[lv_ownerofTarget] = UnitGetOwner(lv_caster);
        if ((libGDHL_gv_heroNecromancerMortalWoundsNumbers[lv_ownerofTarget] > 0.0)) {

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

    lv_tauntedPlayer = UnitGetOwner(lv_tauntedUnit);
    lv_tauntBehavior = EventUnitBehavior();
    lv_casterUnit = UnitBehaviorEffectUnit(lv_tauntedUnit, lv_tauntBehavior, c_effectUnitCaster, 0);
    lv_tauntedUnitHasBasicAttackAbility = UnitAbilityExists(lv_tauntedUnit, "attack");

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

    lv_casterPlayer = UnitBehaviorEffectPlayer(EventUnit(), EventUnitBehavior(), c_effectPlayerCaster, 0);
    lv_damageAbsorbed = EventUnitDamageAbsorbed();
    lv_casterUnit = UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0);
    lv_casterUnitOwner = UnitGetOwner(lv_casterUnit);
    lv_shieldedUnit = EventUnit();

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

        }

        if (!((UnitIsAlive(UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0)) == true))) {
            return false;
        }

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

        }

        if (!((UnitHasBehavior2(UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0), "UsingVehicle") == false))) {
            return false;
        }

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

    }

    lv_impactUnit = UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0);
    lv_impactPlayer = UnitGetOwner(lv_impactUnit);
    lv_launchUnit = UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitCaster, 0);

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

    lv_impactUnit = UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0);
    lv_impactPlayer = UnitGetOwner(lv_impactUnit);
    lv_launchUnit = UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitCaster, 0);
    lv_launchPlayer = UnitGetOwner(lv_launchUnit);
    lv_targetUnit = lv_impactUnit;

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

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

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

    UnitCreateEffectUnit(lv_unit, "AlarakSadismRiteofRakShirMarkerDummy", lv_unit);
    if ((libHALA_gv_heroAlarakRiteofRakShirActivelyTransferring[UnitBehaviorEffectPlayer(lv_unit, "AlarakSadismRiteofRakShirTalentDebuff", c_effectPlayerCaster, 0)] == false)) {
        UnitCreateEffectUnit(UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0), "OneOffDamageRevealSourceApplyRevealer", lv_unit);
    }
    else {

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

        lv_newTarget = lv_transportedUnit;
    }
    lv_alarak = UnitBehaviorEffectUnit(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff", c_effectUnitSource, 0);
    lv_behaviorDuration = UnitBehaviorDuration(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff");
    libHALA_gv_heroAlarakRiteofRakShirActivelyTransferring[UnitGetOwner(lv_alarak)] = true;

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

    lv_iter = 0;
    for ( ; ( (autoB6FE2083_ai >= 0 && lv_iter <= autoB6FE2083_ae) || (autoB6FE2083_ai < 0 && lv_iter >= autoB6FE2083_ae) ) ; lv_iter += autoB6FE2083_ai ) {
        lv_alarakUnit = UnitBehaviorEffectUnit(lv_deadUnit, "AlarakSadismRiteofRakShirTalentDebuff", c_effectUnitCaster, lv_iter);
        UnitCreateEffectUnit(lv_alarakUnit, "AlarakSadismRiteofRakShirTalentResetPlayerCooldown", lv_alarakUnit);
        if ((UnitTestState(lv_deadUnit, c_unitStateHallucination) == false) && (UnitHasBehavior2(lv_deadUnit, "IsPseudoStructure") == false)) {

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

    lv_bestowHopeStackIteration = 0;
    for ( ; ( (auto1108B650_ai >= 0 && lv_bestowHopeStackIteration <= auto1108B650_ae) || (auto1108B650_ai < 0 && lv_bestowHopeStackIteration >= auto1108B650_ae) ) ; lv_bestowHopeStackIteration += auto1108B650_ai ) {
        lv_auriel = UnitBehaviorEffectUnit(lv_proxy, "AurielBestowHopeProxyBehavior", c_effectUnitCaster, lv_bestowHopeStackIteration);
        lv_aurielPlayer = UnitGetOwner(lv_auriel);
        if ((UnitTypeTestAttribute(UnitGetType(lv_target), c_unitAttributeHeroic) == true)) {

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

    }

    UnitBehaviorAdd(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallUnit, EventUnitBehavior(), UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0), 1);
    return true;
}

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


    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeCreate)) {
        UnitBehaviorAdd(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallUnit, "GallForwardedStasis", UnitBehaviorEffectUnit(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_choUnit, EventUnitBehavior(), c_effectUnitCaster, 0), 1);
    }

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

    libUIUI_gv_uIHealingFountainsHelpTextHasFountainBeenUsed[libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallPlayer] = true;
    libUIUI_gf_UIHealingFountainsHelpTextShowHideForPlayer(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallPlayer, false);
    UnitBehaviorAdd(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallUnit, "HealingFountainCooldown", UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0), 1);
    return true;
}

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:371

    lv_dVaPilotUnit = libGame_gv_players[lp_dVaPlayer].lv_heroUnit;
    if ((UnitHasBehavior2(lv_dVaPilotUnit, "DVaPilotDisableCallMech") == true)) {
        lv_dVaMechUnit = UnitBehaviorEffectUnit(lv_dVaPilotUnit, "DVaPilotDisableCallMech", c_effectUnitCaster, 0);
        lv_durationMax = UnitBehaviorDurationTotal(lv_dVaMechUnit, "DVaMechCallMechDisabler");
        lv_durationRemain = UnitBehaviorDuration(lv_dVaMechUnit, "DVaMechCallMechDisabler");

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:558

    // Conditions
    if (testConds) {
        if (!((UnitGetType(UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitTarget, 0)) == "HeroDVaPilot"))) {
            return false;
        }

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:568

    }

    lv_dVaPlayer = UnitGetOwner(UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitTarget, 0));
    lv_aurielUnit = UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0);
    Wait(0.0625, c_timeGame);

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:569


    lv_dVaPlayer = UnitGetOwner(UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitTarget, 0));
    lv_aurielUnit = UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0);
    Wait(0.0625, c_timeGame);
    UnitCreateEffectUnit(lv_aurielUnit, "AurielResurrectLightSpeedApplyControllerBehavior", libAIAI_gv_aIHeroes[lv_dVaPlayer].lv_currentHeroUnit);

mods/heromods/hanzo.stormmodbase.stormdata/LibHHAN.galaxy:305

    // Variable Initialization
    lv_trackedUnit = EventUnit();
    lv_trackerUnit = UnitBehaviorEffectUnit(lv_trackedUnit, "HanzoSonicArrowFollowTarget", c_effectUnitSource, 0);

    // Conditions

mods/heromods/hanzo.stormmodbase.stormdata/LibHHAN.galaxy:680

        return true;
    }
    lv_originatingHanzo = UnitBehaviorEffectUnit(lv_heroUnit, "HanzoTargetPracticeOwnershipDummy", c_effectUnitCaster, 0);
    UnitBehaviorAdd(lv_createdUnit, "HanzoTargetPracticeOwnershipDummy", lv_originatingHanzo, 1);
    UnitBehaviorAdd(lv_createdUnit, "HanzoTargetPracticeTargetTokenCounter", lv_originatingHanzo, 1);

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


    if ((UnitHasBehavior2(lv_targetUnit, "ImperiusCelestialChargeChannelStunDebuff") == true)) {
        lv_imperiusUnit = UnitBehaviorEffectUnit(lv_targetUnit, "ImperiusCelestialChargeChannelStunDebuff", c_effectUnitCaster, 0);
        if ((((UnitHasBehaviorWithCategoryFlag(lv_targetUnit, c_behaviorCategoryTimeStop) == true) && (UnitHasBehaviorWithCategoryFlag(lv_imperiusUnit, c_behaviorCategoryTimeStop) == false)) || ((UnitHasBehaviorWithCategoryFlag(lv_targetUnit, c_behaviorCategoryTimeStop) == false) && (UnitHasBehaviorWithCategoryFlag(lv_imperiusUnit, c_behaviorCategoryTimeStop) == true)))) {
            UnitBehaviorRemove(lv_targetUnit, "ImperiusCelestialChargeChannelStunDebuff", c_unitBehaviorCountAll);

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

    lv_wrathOfTheAngirisTargetUnit = EventUnit();
    lv_wrathOfTheAngirisTargetPlayer = UnitGetOwner(lv_wrathOfTheAngirisTargetUnit);
    lv_wrathOfTheAngirisImperiusUnit = UnitBehaviorEffectUnit(lv_wrathOfTheAngirisTargetUnit, "ImperiusWrathOfTheAngirisTargetRemovedStasis", c_effectUnitCaster, 0);
    lv_wrathOfTheAngirisImperiusPlayer = UnitGetOwner(lv_wrathOfTheAngirisImperiusUnit);

mods/heromods/kelthuzad.stormmodbase.stormdata/LibHKEL.galaxy:198

    }

    lv_casterUnit = UnitBehaviorEffectUnit(lv_targetUnit, "KelThuzadChainsHost", c_effectUnitCaster, 0);
    lv_casterPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_targetUnit, lv_chainBehavior, c_effectUnitCaster, 0));
    if ((lv_chainBehavior == "KelThuzadChainsHost")) {

mods/heromods/kelthuzad.stormmodbase.stormdata/LibHKEL.galaxy:199


    lv_casterUnit = UnitBehaviorEffectUnit(lv_targetUnit, "KelThuzadChainsHost", c_effectUnitCaster, 0);
    lv_casterPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_targetUnit, lv_chainBehavior, c_effectUnitCaster, 0));
    if ((lv_chainBehavior == "KelThuzadChainsHost")) {
        libHKEL_gv_heroKelThuzadChainsVictims[lv_casterPlayer][libHKEL_gv_heroKelThuzadChainVictimHostIndex] = lv_targetUnit;

mods/heromods/medivh.stormmodbase.stormdata/LibHMDV.galaxy:694

        lv_shieldedUnit = lv_unit;
        lv_ownerofShieldedUnit = UnitGetOwner(lv_shieldedUnit);
        lv_caster = UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0);
        libHMDV_gv_medivhForceofWillCaster[UnitGetOwner(lv_shieldedUnit)] = lv_caster;
        libHMDV_gv_medivhForceofWillCasterOwner[UnitGetOwner(lv_shieldedUnit)] = UnitGetOwner(lv_caster);

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1526


    // Variable Initialization
    lv_mirrorImage = UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0);
    lv_samuroPlayer = UnitGetOwner(UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0));

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1527

    // Variable Initialization
    lv_mirrorImage = UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0);
    lv_samuroPlayer = UnitGetOwner(UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0));

    // Conditions

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1546


    lv_samuro = libGame_gv_players[lv_samuroPlayer].lv_heroUnit;
    if ((UnitTypeTestAttribute(UnitGetType(UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitTarget, 0)), c_unitAttributeHeroic) == true) && (UnitBehaviorCount(lv_samuro, "SamuroMirrorImageWayOfIllusionQuestToken") < 40)) {
        UnitCreateEffectUnit(lv_samuro, "SamuroMirrorImageWayOfIllusionQuestIncrementToken", lv_samuro);
        auto687B0F4F_g = libHSAM_gv_mirrorImageUnitGroup[lv_samuroPlayer];

mods/heromods/stukov.stormmodbase.stormdata/LibHSTU.galaxy:95

    }

    lv_stukov = UnitBehaviorEffectUnit(lv_healingPathogenUnit, "StukovHealingPathogenHealerBehavior", c_effectUnitCaster, 0);
    if ((PlayerHasTalent(UnitGetOwner(lv_stukov), "StukovSuperstrain") == true)) {
        UnitCreateEffectUnit(lv_stukov, "StukovHealingPathogenSuperstrainHealer", lv_healingPathogenUnit);

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

    lv_shieldedUnit = EventUnit();
    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeActivate)) {
        lv_caster = UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0);
        libHZAR_gv_heroZaryaShieldCasterOwner[UnitGetOwner(lv_shieldedUnit)] = UnitGetOwner(lv_caster);
    }

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

    }
    else if ((EventUnitBehaviorChange() == c_unitBehaviorChangeRefresh)) {
        lv_caster = UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0);
        lv_ownerofShielded = UnitGetOwner(lv_shieldedUnit);
        libHZAR_gv_heroZaryaShieldCasterOwner[lv_ownerofShielded] = UnitGetOwner(lv_caster);

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

    }

    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)) {

mods/heromods/zarya.stormmodbase.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.stormmodbase.stormdata/LibHZAR.galaxy:537

    }

    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)) {

mods/heromods/zarya.stormmodbase.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/heromods/zarya.stormmodbase.stormdata/LibHZAR.galaxy:568

    lv_localTriggeringUnit = EventUnit();
    lv_localTriggeringPlayer = UnitGetOwner(lv_localTriggeringUnit);
    lv_zaryaPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_localTriggeringUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0));

    // Conditions

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

    lv_localShieldedUnit = EventUnit();
    lv_localShieldedPlayer = UnitGetOwner(lv_localShieldedUnit);
    lv_zaryaPlayer = UnitGetOwner(UnitBehaviorEffectUnit(lv_localShieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0));

    // Conditions

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

        }

        if (!((PlayerHasTalent(UnitGetOwner(UnitBehaviorEffectUnit(EventUnitDamageSourceUnit(), "ZaryaShieldAlly", c_effectUnitCaster, 0)), "ZaryaShieldAllyTogetherWeAreStrong") == true))) {
            return false;
        }

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

    }
    else {
        lv_zaryaUnit = UnitBehaviorEffectUnit(lv_allyUnit, "ZaryaShieldAlly", c_effectUnitCaster, 0);
        lv_zaryaOwner = UnitGetOwner(lv_zaryaUnit);
        lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:2367

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:2463

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:2547

    lv_talkTimer = TimerCreate();
    lv_nearbyEnemies = UnitGroupEmpty();
    lv_caster = UnitBehaviorEffectUnit(gv_artanis, "DOMEMPDecloak", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:5900

    }

    lv_casterGhost = UnitBehaviorEffectUnit(EventUnit(), "DetectorConeDetected", c_effectUnitCaster, 0);
    Wait(1.0, c_timeAI);
    while ((UnitHasBehavior2(EventUnit(), "DetectorConeDetected") == true) && (UnitHasBehavior2(gv_artanis, "DetectorConeDetected") == true) && (UnitIsAlive(lv_casterGhost) == true)) {

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:2523

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:2619

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:2703

    lv_talkTimer = TimerCreate();
    lv_nearbyEnemies = UnitGroupEmpty();
    lv_caster = UnitBehaviorEffectUnit(gv_zeratul, "DOMEMPDecloak", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2883

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_nova, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:2367

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:2463

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:2547

    lv_talkTimer = TimerCreate();
    lv_nearbyEnemies = UnitGroupEmpty();
    lv_caster = UnitBehaviorEffectUnit(gv_artanis, "DOMEMPDecloak", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:5900

    }

    lv_casterGhost = UnitBehaviorEffectUnit(EventUnit(), "DetectorConeDetected", c_effectUnitCaster, 0);
    Wait(1.0, c_timeAI);
    while ((UnitHasBehavior2(EventUnit(), "DetectorConeDetected") == true) && (UnitHasBehavior2(gv_artanis, "DetectorConeDetected") == true) && (UnitIsAlive(lv_casterGhost) == true)) {

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:2523

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:2619

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:2703

    lv_talkTimer = TimerCreate();
    lv_nearbyEnemies = UnitGroupEmpty();
    lv_caster = UnitBehaviorEffectUnit(gv_zeratul, "DOMEMPDecloak", c_effectUnitCaster, 0);

    // Conditions

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2883

    // Variable Initialization
    lv_talkTimer = TimerCreate();
    lv_detectingUnit = UnitBehaviorEffectUnit(gv_nova, "DetectorConeDetected", c_effectUnitCaster, 0);

    // Conditions

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

    lv_groupC = UnitConjoinedGroup(lv_unit, "NydusWormConjoined");
    lv_stack = UnitBehaviorCount(lv_unit, lv_behavior);
    lv_caster = UnitBehaviorEffectUnit(lv_unit, lv_behavior, c_effectUnitCaster, 0);

    // Actions

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

    }

    lv_creator = UnitBehaviorEffectUnit(lv_supplicant, libCOMI_gv_supplicantWarpTrainCreatorFinderBehaviorLink, c_effectUnitCaster, 0);
    UnitBehaviorRemove(lv_supplicant, libCOMI_gv_supplicantWarpTrainCreatorFinderBehaviorLink, 1);
    UnitRemove(lv_creator);

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


    if ((UnitBehaviorCount(lv_creator, libCOMI_gv_supplicantWarpTrainWarpRefundBehaviorLink) > 0)) {
        lv_warpGate = UnitBehaviorEffectUnit(lv_creator, libCOMI_gv_supplicantWarpTrainCreatorWarpGateFinderBehaviorLink, c_effectUnitCaster, 0);
        UnitAbilityAddChargeUsed(lv_warpGate, libCOMI_gv_warpGateTrainAbility, "WarpGateTrain", -1.0);
        UnitRemove(lv_creator);

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

    }

    lv_customValue61 = FixedToInt(UnitGetCustomValue(UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0), 61));
    libCOMI_gf_NovaUnitNames_KillUpdateText(UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0), lv_customValue61);
    return true;

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


    lv_customValue61 = FixedToInt(UnitGetCustomValue(UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0), 61));
    libCOMI_gf_NovaUnitNames_KillUpdateText(UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0), lv_customValue61);
    return true;
}

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

    }

    lv_purifier = UnitBehaviorEffectUnit(lv_u, "ZeratulPurificationNovaCasterFinder", c_effectUnitCaster, 0);
    if ((UnitIsValid(lv_purifier) == true) && (TechTreeUpgradeCount(lv_p, "ZeratulArtifactTier3_RoboticsBay", c_techCountCompleteOnly) >= 1)) {
        lv_spawnPoint = UnitGetPosition(lv_u);

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

    }

    lv_purifier = UnitBehaviorEffectUnit(lv_u, "ZeratulPurificationNovaTargettedTarget", c_effectUnitCaster, 0);
    UnitBehaviorAdd(lv_u, "ZeratulPurificationNovaCasterFinder", lv_purifier, 1);
    return true;

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


    if ((UnitHasBehavior2(EventUnit(), "ZeratulPhotonCannonProjectionCaster") == true)) {
        lv_projection = UnitBehaviorEffectUnit(EventUnit(), "ZeratulPhotonCannonProjectionCaster", c_effectUnitCaster, 0);
    }
    else {

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

                else {
                }
                lv_actualKiller = UnitBehaviorEffectUnit(lp_killer, UnitBehaviorGet(lp_killer, lv_behaviorIndex), lv_creditorEffectUnit, 0);
                break;
            }