From a01138b19a7ed897bbcf78029bc10d657da71dcf Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 15 Nov 2021 22:37:42 -0500 Subject: [PATCH] Core/Commands: fix .appear command provide wrong undermap position Port From (https://github.com/TrinityCore/TrinityCore/commit/e58d737a937cab75d892f825da4b01f3a5a1108b) --- Source/Game/Chat/Commands/MiscCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Chat/Commands/MiscCommands.cs b/Source/Game/Chat/Commands/MiscCommands.cs index cebcaa8c1..a9ce3b369 100644 --- a/Source/Game/Chat/Commands/MiscCommands.cs +++ b/Source/Game/Chat/Commands/MiscCommands.cs @@ -360,7 +360,7 @@ namespace Game.Chat // to point to see at target with same orientation float x, y, z; - target.GetContactPoint(_player, out x, out y, out z); + target.GetClosePoint(out x, out y, out z, _player.GetCombatReach(), 1.0f); _player.TeleportTo(target.GetMapId(), x, y, z, _player.GetAbsoluteAngle(target), TeleportToOptions.GMMode); PhasingHandler.InheritPhaseShift(_player, target);