Jump to content

Recommended Posts

  • 39 years later...
Posted

Hello.

I have a problem with Death grip spell (49576):

It don't teleport the enemy!

For exemple if you use it on an inactive enemy, he will run as a normal aggro, and if you use it when the enemy is fighting, the spell don't aggro him.

I have posted this problem in the UDB forum, and the told me that it is a Mangos problem, so I post here ;)

  • 1 month later...
Posted

MaNGOS/0.14.0 (* * Revision 8416 - *) for Linux_x64 (little-endian)
Using script library: ScriptDev2 (for MaNGOS 8273+) Revision [1369] 2009-08-24 13:52:29 (Unix)
Using World DB: PSDB WotLK (243)
Using creature EventAI: PSDB EventAI & ACID 3.0.0

Death Grip still doesn't wok.

Please, dev team. Fix it.

You will make happy faces on many DK ;)

Posted

you can test this patch

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 23020ca..cc6562e 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1774,6 +1774,33 @@ void Spell::EffectDummy(uint32 i)
                }
                return;
            }
+            switch(m_spellInfo->Id)
+            {
+                // Death Grip
+                case 49560:
+                case 49576:
+                {
+                    if (!unitTarget || !m_caster)
+                        return;
+
+                    float x = m_caster->GetPositionX();
+                    float y = m_caster->GetPositionY();
+                    float z = m_caster->GetPositionZ()+1;
+                    float orientation = unitTarget->GetOrientation();
+
+                    m_caster->CastSpell(unitTarget,51399,true,NULL);                
+                    
+                    if(unitTarget->GetTypeId() != TYPEID_PLAYER)
+                        {
+                        unitTarget->GetMap()->CreatureRelocation((Creature*)unitTarget,x,y,z,orientation);
+                        ((Creature*)unitTarget)->SendMonsterMove(x, y, z, orientation, MONSTER_MOVE_UNK12, 1);
+                        }
+                    else
+                        unitTarget->NearTeleportTo(x,y,z,orientation,false);
+
+                    return;
+                }
+            }
            break;
    }

  • 2 weeks later...
  • 5 months later...
Posted

Here the patch updated:

m_caster->CastCustomSpell(m_caster, 45470, &bp, NULL, NULL, true);

return;

}

+ switch(m_spellInfo->Id)

+ {

+ // Death Grip

+ case 49560:

+ case 49576:

+ {

+ if (!unitTarget || !m_caster)

+ return;

+

+ float x = m_caster->GetPositionX();

+ float y = m_caster->GetPositionY();

+ float z = m_caster->GetPositionZ()+1;

+ float orientation = unitTarget->GetOrientation();

+

+ m_caster->CastSpell(unitTarget,51399,true,NULL);

+

+ if(unitTarget->GetTypeId() != TYPEID_PLAYER)

+ {

+ unitTarget->GetMap()->CreatureRelocation((Creature*)unitTarget,x,y,z,orientation);

+ ((Creature*)unitTarget)->SendMonsterMove(x, y, z, SPLINETYPE_NORMAL, SPLINEFLAG_UNKNOWN11, 1);

+ }

+ else

+ unitTarget->NearTeleportTo(x,y,z,orientation,false);

+

+ return;

+ }

+ }

break;

}

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