Jump to content

[fix]Glyph of Felhunter


Recommended Posts

Posted

What bug does the patch fix? What features does the patch add?

fixes self heal when having this glyph on

For which repository revision was the patch created?

9605

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

haven't seen any

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index ffe492a..5f8439e 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4116,6 +4116,11 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
            {
                int32 heal_amount = m_spellInfo->CalculateSimpleValue(EFFECT_INDEX_1);
                m_caster->CastCustomSpell(m_caster, 19658, &heal_amount, NULL, NULL, true);
+
+                // Glyph of Felhunter
+                if (Unit *owner = m_caster->GetOwner())
+                    if (owner->HasAura(56249))
+                        m_caster->CastCustomSpell(owner, 19658, &heal_amount, NULL, NULL, true);
            }
        }
        // Send fail log to client

I'm not sure if procFlags needs to be used since glyph aura is on player and felhunter's spell cast can't proc it

  • 3 months later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use