i have a fix for Death grip, when i used the spell, then can not move more
SpellEffects.cpp:
void Spell::EffectDummy(uint32 i)
{
if(!unitTarget && !gameObjTarget && !itemTarget)
return;
// Death Grip
//todo : insert it to right spell family
if (m_spellInfo->Id == 49560 || m_spellInfo->Id == 49576)//wtf 2 IDs
{
// Init dest coordinates
uint32 mapid = m_caster->GetMapId();
float x = m_caster->GetPositionX();
float y = m_caster->GetPositionY();
float z = m_caster->GetPositionZ();
float orientation = unitTarget->GetOrientation();
// Teleport
if(unitTarget->GetTypeId() == TYPEID_PLAYER)
((Player*)unitTarget)->TeleportTo(mapid, x, y, z, orientation, TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET );
else
{
MapManager::Instance().GetMap(mapid, m_caster)->CreatureRelocation((Creature*)unitTarget, x, y, z, orientation);
WorldPacket data;
unitTarget->BuildTeleportAckMsg(&data, x, y, z, orientation);
unitTarget->SendMessageToSet(&data, false);
}
}
i hoe anyone can help