Core/Auras: Implement SPELL_AURA_MOD_ENVIRONMENTAL_DAMAGE_TAKEN

Port From (https://github.com/TrinityCore/TrinityCore/commit/f12f3a972ff12168f07cee655077cc819b6dcaa2)
This commit is contained in:
hondacrx
2022-05-09 13:06:23 -04:00
parent 9c5330fd99
commit 1f184161b9
2 changed files with 3 additions and 1 deletions
@@ -457,7 +457,7 @@ namespace Framework.Constants
Unk433 = 433,
Unk434 = 434,
Unk435 = 435,
ModEnvironmentalDamageTaken = 436, // NYI
ModEnvironmentalDamageTaken = 436,
ModMinimumSpeedRate = 437,
PreloadPhase = 438, // NYI
Unk439 = 439,
+2
View File
@@ -3995,6 +3995,8 @@ namespace Game.Entities
if (IsImmuneToEnvironmentalDamage())
return 0;
damage = (uint)(damage * GetTotalAuraMultiplier(AuraType.ModEnvironmentalDamageTaken));
// Absorb, resist some environmental damage type
uint absorb = 0;
uint resist = 0;