tested this script with
@@ -1765,8 +1785,28 @@ void Spell::EffectDummy(uint32 i)
return;
}
break;
- }
-
+ case SPELLFAMILY_DEATHKNIGHT:
+ 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() + 5;
+ 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);
+ }
+ }
+ break;
+ }
as i use death grip on creature, i cant move after using this spell, but on player, there is no problem
thx
EDIT: ok here my final result on testing this patch..
1. if cast on player, there is no problem
2. if cast on creature and got nearby player, nearby player got teleport to caster and made all teleported player stuck/freeze
3. if cast on creature but no nearby player, creature got teleported but caster stucked