[8920] Fixed glyph 42408 by move code to more correct place.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Splinter 2009-12-06 00:37:43 +03:00 committed by VladimirMangos
parent 6094d2368b
commit 155ea6f40a
3 changed files with 12 additions and 22 deletions

View file

@ -1841,7 +1841,17 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
preventDeathAmount = (*i)->GetModifier()->m_amount;
continue;
}
// Power Word: Shield
if (spellProto->SpellFamilyFlags & UI64LIT(00000001) && spellProto->Mechanic == MECHANIC_SHIELD)
{
// Glyph of Power Word: Shield
if (Aura *glyph = pVictim->GetAura(55672,0))
{
int32 heal = int32(glyph->GetModifier()->m_amount *
(RemainingDamage >= currentAbsorb ? currentAbsorb : RemainingDamage) / 100);
pVictim->CastCustomSpell(pVictim, 56160, &heal, NULL, NULL, true, 0, *i);
}
}
// Reflective Shield
if (spellProto->SpellFamilyFlags == 0x1 && canReflect)
{