Core/Commands: fix .appear command provide wrong undermap position (#22624)

(cherry picked from commit 1e99f98327)
This commit is contained in:
ForesterDev
2018-10-11 13:36:35 +04:00
committed by Shauren
parent 4e66353854
commit e58d737a93

View File

@@ -462,7 +462,7 @@ public:
// to point to see at target with same orientation
float x, y, z;
target->GetContactPoint(_player, x, y, z);
target->GetClosePoint(x, y, z, _player->GetCombatReach(), 1.0f);
_player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAbsoluteAngle(target), TELE_TO_GM_MODE);
PhasingHandler::InheritPhaseShift(_player, target);