# Triggering Damage Behavior Shield
Grammar — Triggering damage absorbed by behavior shields
Flags —Native
|Function
Returns the triggering damage amount absorbed by behavior shields (Damage Response Modify Limit)
Returns — fixed
native fixed EventUnitDamageBehaviorShield();
# Supported triggers
- Unit Takes Damage — TriggerAddEventUnitDamaged
# Related
Category: Unit / Combat
- Get Unit Damage Dealt Time —
fixed
— UnitGetDamageDealtTime - Get Unit Damage Taken Time —
fixed
— UnitGetDamageTakenTime - Weapon Used In Attack —
string
<gamelink::Weapon> — EventUnitGetWeapon - Item Used In Attack —
unit
— EventUnitGetItem - Item Type Used In Attack —
string
<gamelink::Item> — EventUnitGetItemType - Unit Dies —
void
— TriggerAddEventUnitDied - Killing Unit —
unit
— libNtve_gf_KillingUnit - Killing Player —
int
— libNtve_gf_KillingPlayer - Triggering Death Type Check —
bool
— EventUnitDamageDeathCheck - Unit Is Being Removed —
void
— TriggerAddEventUnitRemoved - Unit Starts Attacking (Deprecated) —
void
— TriggerAddEventUnitStartedAttack - Unit Starts Attacking —
void
— TriggerAddEventUnitStartedAttack2 - Unit Is Attacked (Deprecated) —
void
— TriggerAddEventUnitAttacked - Unit Is Attacked —
void
— TriggerAddEventUnitAttacked2 - Attacking Unit —
unit
— EventUnitTarget - Unit Absorbs Damage —
void
— TriggerAddEventUnitDamageAbsorbed - Unit Takes Damage —
void
— TriggerAddEventUnitDamaged - Damaging Unit —
unit
— EventUnitDamageSourceUnit - Damaging Player —
int
— EventUnitDamageSourcePlayer - Damaging Effect —
string
<gamelink::Effect> — EventUnitDamageEffect - Triggering Damage Taken —
fixed
— EventUnitDamageAmount - Triggering Damage Attempted —
fixed
— EventUnitDamageAttempted - Triggering Damage Attempted Vitals —
fixed
— EventUnitDamageAttemptedVitals - Triggering Damage Absorbed —
fixed
— EventUnitDamageAbsorbed - Triggering Damage Behavior Shield —
fixed
— EventUnitDamageBehaviorShield - Triggering Vitals Leeched —
fixed
— EventUnitDamageVitalsLeeched - Triggering Unit Kill XP —
int
— EventUnitDamageKillXP - Damage Source Position —
point
— EventUnitDamageSourcePoint - Unit is Healed —
void
— TriggerAddEventUnitHealed - Healing Unit —
unit
— EventUnitHealLaunchUnit - Healing Player —
int
— EventUnitHealLaunchPlayer - Triggering Heal Vital Type —
int
<preset::UnitVitalType> — EventUnitHealVital - Triggering Heal Given —
fixed
— EventUnitHealAmount - Healing Effect —
string
<gamelink::Effect> — EventUnitHealEffect - Unit Spends Vital —
void
— TriggerAddEventUnitSpendVital - Triggering Spent Vital Type —
int
<preset::UnitVitalType> — EventUnitSpentVitalVital - Triggering Vital Spent —
fixed
— EventUnitSpentVitalAmount - Unit Acquires Target —
void
— TriggerAddEventUnitAcquiredTarget - Acquired Target —
unit
— libNtve_gf_AcquiredTarget - Unit Is Revived —
void
— TriggerAddEventUnitRevive - Triggering Victim Unit —
unit
— EventUnitVictimUnit - Triggering Item Used —
unit
— EventUnitItemUsed - Triggering Effect Used —
string
<gamelink::Effect> — EventUnitEffectUsed
# Examples
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/LibHAUR.galaxy:588
// Variable Initialization
lv_damageDealt = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
lv_proxy = EventUnitDamageSourceUnit();
lv_proxyPlayer = UnitGetOwner(lv_proxy);
mods/heromods/auriel.stormmod — base.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.stormmod — base.stormdata/LibHDEH.galaxy:385
}
lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
if ((PlayerHasTalent(lv_dehakaPlayer, "DehakaAdaptationChangeIsSurvivalTalent") != true)) {
lv_damageAmount = (lv_damageAmount * libHDEH_gv_heroDehakaAdaptationBaseHealMod);
mods/heromods/dehaka.stormmod — base.stormdata/LibHDEH.galaxy:470
}
lv_incomingDamage = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
if ((PlayerHasTalent(lv_dehakaPlayer, "DehakaAdaptationChangeIsSurvivalTalent") != true)) {
lv_incomingDamage = (lv_incomingDamage * libHDEH_gv_heroDehakaAdaptationBaseHealMod);
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:1028
}
lv_incomingDamageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
if ((UnitHasBehavior2(EventUnitDamageSourceUnit(), "DVaMechDefenseMatrixDebuff") == true)) {
lv_incomingDamageAmount /= 0.25;
mods/heromods/firebat.stormmod — base.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.stormmod — base.stormdata/LibHGUL.galaxy:195
// Automatic Variable Declarations
// Variable Initialization
lv_damageDealt = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
// Conditions
mods/heromods/mephisto.stormmod — base.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.stormmod — base.stormdata/LibHSAM.galaxy:1344
// Automatic Variable Declarations
// Variable Initialization
lv_damage = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
lv_image = EventUnit();
lv_imageOwner = UnitGetOwner(lv_image);
mods/heromods/thefirelords.stormmod — base.stormdata/LibHMaj.galaxy:768
}
lv_damageValue = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
if ((UnitHasBehavior2(lv_ragnarosUnit, "RagnarosBlastWaveTemperedFlame") == true)) {
lv_currentShields = UnitBehaviorDamageModifyRemaining(lv_ragnarosUnit, "RagnarosBlastWaveTemperedFlame");
mods/heromods/thefirelords.stormmod — base.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.stormmod — base.stormdata/LibHWHI.galaxy:89
}
lv_damageAmount = (EventUnitDamageAmount() + EventUnitDamageBehaviorShield());
libHWHI_gv_heroWhitemaneZealCombinedHeal[lv_itPlayer] += lv_damageAmount;
return true;
mods/heromods/yrel.stormmod — base.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.stormmod — base.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.stormmod — base.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;