mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[9557] Move the code of glyph 55672 to a better place
Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
parent
3d3348e485
commit
c5d43bfd16
3 changed files with 16 additions and 12 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue