Core/Commands: fix .appear command provide wrong undermap position
Port From (https://github.com/TrinityCore/TrinityCore/commit/e58d737a937cab75d892f825da4b01f3a5a1108b)
This commit is contained in:
@@ -360,7 +360,7 @@ namespace Game.Chat
|
|||||||
|
|
||||||
// to point to see at target with same orientation
|
// to point to see at target with same orientation
|
||||||
float x, y, z;
|
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);
|
_player.TeleportTo(target.GetMapId(), x, y, z, _player.GetAbsoluteAngle(target), TeleportToOptions.GMMode);
|
||||||
PhasingHandler.InheritPhaseShift(_player, target);
|
PhasingHandler.InheritPhaseShift(_player, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user