Jump to content

[patch] Glyph of Freezing Trap


Recommended Posts

Posted

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

Fixes spell http://www.wowhead.com/?spell=56845

For which repository revision was the patch created?

9560

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

none

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

me

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 8391745..a87f4d9 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6578,6 +6578,19 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
                spellId3 = 24397;
                spellId4 = 26592;
            }
+            // Freezing Trap Effect
+            else if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000008))
+            {
+                if(!apply)
+                {
+                    // Glyph of Freezing Trap
+                    if (Unit *caster = GetCaster())
+                        if (caster->HasAura(56845))
+                            m_target->CastSpell(m_target, 61394, true, NULL, this, GetCasterGUID());
+                }
+                else
+                    return;
+            }
            // Aspect of the Dragonhawk dodge
            else if (GetSpellProto()->SpellFamilyFlags2 & 0x00001000)
            {

commit http://github.com/insider42/mangos/commit/31d65e26b6dc557ab6034ade35fc6fff7b2ab2e9

But there still presents a bug with wrong shown caster in combat logs, also doesn't work one talent in survival becasue of bug when trap _spells_ uses target guid, not original caster.

For example you can simple check this bug on clean (without any patches) mangos:

select any hostile target in 15 yards, write command .cast 3355 (this is freezing trap or 13797 - from immolation trap), target will be freezed, BUT check your combat logs - "TARGET will use spell at target", but should be "YOU uses spell at target" - it's a serious bug.

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