# Triggering Damage Behavior Shield

Grammar — Triggering damage absorbed by behavior shields
FlagsNative | Function

Returns the triggering damage amount absorbed by behavior shields (Damage Response Modify Limit)

Returns — fixed

native fixed EventUnitDamageBehaviorShield();

# Supported triggers

Category: Unit / Combat

# Examples

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

    }

    lv_damageValue = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    if ((UnitFilterMatch(lv_unit, lv_owner, UnitFilter((1 << c_targetFilterHeroic), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), 0)) == true)) {
        if ((PlayerScoreValueGetAsInt(lv_owner, "JainaFrostbiteDamage") < libGDHL_gv_heroJainaFrostbiteConstant)) {

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

        }
    }
    lv_healAmount = ((EventUnitDamageAmount() + EventUnitDamageBehaviorShield()) * lv_finalHealMod);
    CatalogFieldValueSetFixed(c_gameCatalogEffect, "RexxarMishaBasicAttackRexxarHealingCreateHealer", "RechargeVitalRate", lv_mishaPlayer, lv_healAmount);
    UnitCreateEffectUnitWithSource(EventUnitDamageSourceUnit(), "RexxarMishaBasicAttackRexxarHealingCreateHealer", libGame_gv_players[lv_mishaPlayer].lv_heroUnit, c_gameCatalogAbil, "RexxarBestialWrath");

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

    }

    lv_damageAmount = ((EventUnitDamageAmount() + EventUnitDamageBehaviorShield()) * lv_damageDealtHealingFraction);
    libGDHL_gv_heroTychusThatsTheStuffCombinedHeal[lv_itPlayer] += lv_damageAmount;
    libGDHL_gv_heroTychusThatsTheStuffHealPreviewCombinedDamage[UnitGetOwner(lv_itUnit)] += lv_damageAmount;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1372

    lv_triggeringUnit = EventUnit();
    lv_damageAttempted = EventUnitDamageAttemptedVitals();
    lv_damageAbsorbed = EventUnitDamageBehaviorShield();
    if ((lv_damageAttempted < 1.0) && (lv_damageAbsorbed < 1.0)) {
        return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1378


    if ((lv_triggeringPlayer >= 1) && (lv_triggeringPlayer <= libCore_gv_bALMaxPlayers) && (UnitTestState(lv_triggeringUnit, c_unitStateHallucination) == false) && (lv_damagingPlayer != UnitGetOwner(lv_triggeringUnit)) && (UnitTestState(lv_triggeringUnit, c_unitStateInvulnerable) == false) && ((lv_triggeringUnit == libGame_gv_players[lv_triggeringPlayer].lv_heroUnit) || (lv_triggeringUnit == libGame_gv_players[lv_triggeringPlayer].lv_activeVehicle))) {
        lv_damageDone = Round((EventUnitDamageAttemptedVitals() + EventUnitDamageBehaviorShield()));
        libSond_gf_HeroVOHeroGetHitResponse(lv_damageDone, lv_triggeringUnit);
    }

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


    // Variable Initialization
    lv_damageDealt = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    lv_proxy = EventUnitDamageSourceUnit();
    lv_proxyPlayer = UnitGetOwner(lv_proxy);

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

    if ((PlayerHasTalent(libHAUR_gv_heroAurielBestowHopeProxyOwner[lv_proxyPlayer], "AurielEmpathicLinkBestowHopeTalent") == true)) {
        lv_auriel = libGame_gv_players[libHAUR_gv_heroAurielBestowHopeProxyOwner[lv_proxyPlayer]].lv_heroUnit;
        lv_damageTaken = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
        UnitSetPropertyFixed(lv_auriel, c_unitPropEnergy, (UnitGetPropertyFixed(lv_auriel, c_unitPropEnergy, c_unitPropCurrent) + (lv_damageTaken * libHAUR_gv_heroAurielBestowHopeEmpathicLinkStoredPercentage)));
    }

mods/heromods/dehaka.stormmodbase.stormdata/LibHDEH.galaxy:385

    }

    lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    if ((PlayerHasTalent(lv_dehakaPlayer, "DehakaAdaptationChangeIsSurvivalTalent") != true)) {
        lv_damageAmount = (lv_damageAmount * libHDEH_gv_heroDehakaAdaptationBaseHealMod);

mods/heromods/dehaka.stormmodbase.stormdata/LibHDEH.galaxy:470

    }

    lv_incomingDamage = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    if ((PlayerHasTalent(lv_dehakaPlayer, "DehakaAdaptationChangeIsSurvivalTalent") != true)) {
        lv_incomingDamage = (lv_incomingDamage * libHDEH_gv_heroDehakaAdaptationBaseHealMod);

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

    }

    lv_incomingDamageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    if ((UnitHasBehavior2(EventUnitDamageSourceUnit(), "DVaMechDefenseMatrixDebuff") == true)) {
        lv_incomingDamageAmount /= 0.25;

mods/heromods/firebat.stormmodbase.stormdata/LibHFIR.galaxy:444

    }

    lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    lv_damageAmount = (lv_damageAmount * libHFIR_gv_heroFirebatJuggernautPlatingBaseShieldMod);
    libHFIR_gv_heroFirebatJuggernautPlatingCombinedShield[lv_firebatPlayer] += lv_damageAmount;

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_damageDealt = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());

    // Conditions

mods/heromods/mephisto.stormmodbase.stormdata/LibHMEP.galaxy:89

    }

    libHMEP_gv_heroMephistoLightningNovaStaticBarrierShieldValue[lv_owner] += ((EventUnitDamageAmount() + EventUnitDamageBehaviorShield()) * libHMEP_gv_heroMephistoLightningNovaStaticBarrierShieldFraction);
    CatalogFieldValueSetFixed(c_gameCatalogBehavior, "MephistoLightningNovaStaticBarrierShield", "DamageResponse.ModifyLimit", lv_owner, libHMEP_gv_heroMephistoLightningNovaStaticBarrierShieldValue[lv_owner]);
    return true;

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_damage = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    lv_image = EventUnit();
    lv_imageOwner = UnitGetOwner(lv_image);

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

    }

    lv_damageValue = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    if ((UnitHasBehavior2(lv_ragnarosUnit, "RagnarosBlastWaveTemperedFlame") == true)) {
        lv_currentShields = UnitBehaviorDamageModifyRemaining(lv_ragnarosUnit, "RagnarosBlastWaveTemperedFlame");

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

    }

    lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    lv_damageValue = ((lv_damageAmount * lv_healingCoefficient) / CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "RagnarosEmpowerSulfurasCauterizeWoundsHeal", "PeriodCount", c_playerAny));
    CatalogFieldValueSetFixed(c_gameCatalogEffect, "RagnarosEmpowerSulfurasCauterizeWoundsCreateHealer", "RechargeVitalRate", lv_owner, lv_damageValue);

mods/heromods/whitemane.stormmodbase.stormdata/LibHWHI.galaxy:89

    }

    lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
    libHWHI_gv_heroWhitemaneZealCombinedHeal[lv_itPlayer] += lv_damageAmount;
    return true;

mods/heromods/yrel.stormmodbase.stormdata/LibHYRL.galaxy:551

    }

    lv_damageAmount = (libHYRL_gv_heroYrelArdentDefenderDamageConversionScale * (EventUnitDamageAttempted() + EventUnitDamageBehaviorShield()));
    CatalogFieldValueSetFixed(c_gameCatalogEffect, "YrelArdentDefenderCreateHealer", "RechargeVitalRate", lv_yrelPlayer, lv_damageAmount);
    UnitCreateEffectUnit(lv_yrelUnit, "YrelArdentDefenderHealSet", lv_yrelUnit);

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

        lv_zaryaUnit = UnitBehaviorEffectUnit(lv_allyUnit, "ZaryaShieldAlly", c_effectUnitCaster, 0);
        lv_zaryaOwner = UnitGetOwner(lv_zaryaUnit);
        lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
        lv_currentBoost = UnitGetPropertyFixed(lv_zaryaUnit, c_unitPropEnergy, c_unitPropCurrent);
        lv_incomingBoost = (lv_damageAmount / (CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "ZaryaEnergyBoostDecay", "Period", lv_zaryaOwner) / libHZAR_gv_heroZaryaTogetherWeAreStrongUnscaledDamagetoEnergyConversionRate));

mods/heromods/zuljin.stormmodbase.stormdata/LibHZUL.galaxy:900

    }

    lv_damageAmount = ((EventUnitDamageAmount() + EventUnitDamageBehaviorShield()) * lv_damageDealtHealingFraction);
    libHZUL_gv_heroZuljinAmaniResilienceCombinedHeal[lv_itPlayer] += lv_damageAmount;
    libHZUL_gv_heroZuljinAmaniResilienceHealPreviewCombinedDamage[UnitGetOwner(lv_itUnit)] += lv_damageAmount;