mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Fix Unbreakable Armor Formula
*Fix Glyph of Unbreakable Armor --HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user