Jump to content

Death Grip Fix


Auntie Mangos

Recommended Posts

  • 40 years later...

Author : zergtmn , from getmangos.org (Rusia site)

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 3244364..3239a08 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2486,6 +2486,24 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
                m_caster->CastCustomSpell(m_caster, 45470, &bp, NULL, NULL, true);
                return;
            }
+            // Death Grip
+            else if (m_spellInfo->Id == 49576)
+            {
+                if (!unitTarget)
+                    return;
+
+                m_caster->CastSpell(unitTarget, 49560, true);
+                return;
+            }
+            else if (m_spellInfo->Id == 49560)
+            {
+                if (!unitTarget)
+                    return;
+
+                uint32 spellId = m_spellInfo->CalculateSimpleValue(EFFECT_INDEX_0);
+                unitTarget->CastSpell(m_caster->GetPositionX(), m_caster->GetPositionY(), m_caster->GetPositionZ(), spellId, true);
+                return;
+            }
            break;
        }
    }

Patch fixes spell work from server side, not visual effect. EffectJump requires adjustments for correct visual effect.

http://paste2.org/p/1105996

Tested and Works.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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