From 1e99f98327189c00e9e5e552d332120f12d38f03 Mon Sep 17 00:00:00 2001 From: ForesterDev <11771800+ForesterDev@users.noreply.github.com> Date: Thu, 11 Oct 2018 13:36:35 +0400 Subject: Core/Commands: fix .appear command provide wrong undermap position (#22624) --- src/server/scripts/Commands/cs_misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index c1daab7de13..3548de93451 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -453,7 +453,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); _player->SetPhaseMask(target->GetPhaseMask(), true); -- cgit v1.2.3