Jump to content

[FIX] Glyph of Fireball & Glyph of Frostbolt


Guest Most_Mangos

Recommended Posts

Проблема в том что не работает вторая часть глифов Glyph of Fireball & Glyph of Frostbolt

Dont Work this:

but removes the slowing effect.

but removes the damage over time effect.

Чиним фиксом

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index b69fbb5..7eebd4a 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6782,6 +6822,20 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
                    return;
                break;
            }
+           else if (m_spellProto->SpellFamilyFlags & 0x1LL && m_spellProto->SpellFamilyFlags2 & 0x8)
+            {
+                // Glyph of Fireball
+                if (Unit * caster = GetCaster())
+                    if (caster->HasAura(56368))
+                        SetAuraDuration(0);
+            }
+            else if (m_spellProto->SpellFamilyFlags & 0x20LL && GetSpellProto()->SpellVisual[0] == 13)
+            {
+                // Glyph of Frostbolt
+                if (Unit * caster = GetCaster())
+                    if (caster->HasAura(56370))
+                        m_target->RemoveAurasByCasterSpell(GetId(), caster->GetGUID());
+            }

            switch(GetId())
            {

Link to comment
Share on other sites

×
×
  • 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