diff options
author | megamage <none@none> | 2009-08-17 23:51:08 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-17 23:51:08 -0500 |
commit | a690f5239cb2c527e456e22eac0bcfd86deeac98 (patch) | |
tree | e11a4a7f669b7011eabc496c51bde31c2d78b50b /src/game/SpellEffects.cpp | |
parent | 98f58a0f0a6a5cfa8c7453b8124891a8b3fd4cbe (diff) |
*Fix the bug that .start always send dk back to start zone.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 9c9d10ee666..1e66b29e5f6 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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)); |