[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

@ -6251,6 +6251,21 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
else
return;
}
// Power Word: Shield
else if (apply && m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000001) && m_spellProto->Mechanic == MECHANIC_SHIELD)
{
Unit* caster = GetCaster();
if(!caster)
return;
// Glyph of Power Word: Shield
if(Aura* glyph = caster->GetAura(55672,0))
{
int32 heal = (glyph->GetModifier()->m_amount * m_modifier.m_amount)/100;
caster->CastCustomSpell(m_target, 56160, &heal, NULL, NULL, true, 0, this);
}
return;
}
switch(GetId())
{