[9557] Move the code of glyph 55672 to a better place

Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
KAPATEJIb 2010-03-09 10:02:20 +01:00 committed by Lightguard
parent 3d3348e485
commit c5d43bfd16
3 changed files with 16 additions and 12 deletions

View file

@ -1991,17 +1991,6 @@ 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, EFFECT_INDEX_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)
{