aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 75c958229a2..33db2c2ffdd 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -2046,6 +2046,22 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
}
case SPELLFAMILY_DEATHKNIGHT:
{
+ // Unbreakable Armor
+ if (spellProto->Id == 51271)
+ {
+ Unit* caster = (*i)->GetCaster();
+ if (!caster)
+ continue;
+
+ uint32 absorbed = uint32( currentAbsorb * caster->GetArmor() * 0.01f );
+
+ // Glyph of Unbreakable Armor
+ if (AuraEffect *aurEff = caster->GetAuraEffect(58635, 0))
+ absorbed += uint32( absorbed * aurEff->GetAmount() / 100 );
+
+ RemainingDamage -= absorbed;
+ continue;
+ }
// Anti-Magic Shell (on self)
if (spellProto->Id == 48707)
{