*Fix the bug that .start always send dk back to start zone.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-17 23:51:08 -05:00
1 parent 98f58a0f0a
commit a690f5239c
5 files changed
+17 -6

No files matched your search

+1 -2
View File
@@ -5727,8 +5727,7 @@ void Spell::EffectStuck(uint32 /*i*/)
if(pTarget->isInFlight())
return;
PlayerInfo const *info = objmgr.GetPlayerInfo(pTarget->getRace(), pTarget->getClass());
pTarget->TeleportTo(info->mapId, info->positionX, info->positionY, info->positionZ, pTarget->GetOrientation(), (unitTarget==m_caster ? TELE_TO_SPELL : 0));
pTarget->TeleportTo(pTarget->GetStartPosition(), unitTarget == m_caster ? TELE_TO_SPELL : 0);
// homebind location is loaded always
// pTarget->TeleportTo(pTarget->m_homebindMapId,pTarget->m_homebindX,pTarget->m_homebindY,pTarget->m_homebindZ,pTarget->GetOrientation(), (unitTarget==m_caster ? TELE_TO_SPELL : 0));