Core/Commands: fix .appear command provide wrong undermap position

Port From (https://github.com/TrinityCore/TrinityCore/commit/e58d737a937cab75d892f825da4b01f3a5a1108b)
This commit is contained in:
hondacrx
2021-11-15 22:37:42 -05:00
parent 87146f02bc
commit a01138b19a
+1 -1
View File
@@ -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);