Core/Movement: MotionMaster reimplementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/426f9f2f92b26fbb68e7cda9290ccbd586c6af4e)
This commit is contained in:
@@ -1264,11 +1264,7 @@ namespace Game.DungeonFinding
|
||||
if (!player.GetMap().IsDungeon())
|
||||
player.SetBattlegroundEntryPoint();
|
||||
|
||||
if (player.IsInFlight())
|
||||
{
|
||||
player.GetMotionMaster().MovementExpired();
|
||||
player.CleanupAfterTaxiFlight();
|
||||
}
|
||||
player.FinishTaxiFlight();
|
||||
|
||||
if (!player.TeleportTo(mapid, x, y, z, orientation))
|
||||
error = LfgTeleportResult.NoReturnLocation;
|
||||
|
||||
Reference in New Issue
Block a user