mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Dungeon Finder: Fix players getting stuck after being teleported to dungeon while in a taxi flight
--HG-- branch : trunk
This commit is contained in:
@@ -1885,6 +1885,12 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/)
|
||||
if (!plr->GetMap()->IsDungeon() && !plr->GetMap()->IsRaid())
|
||||
plr->SetBattlegroundEntryPoint();
|
||||
|
||||
if (plr->isInFlight())
|
||||
{
|
||||
plr->GetMotionMaster()->MovementExpired();
|
||||
plr->CleanupAfterTaxiFlight();
|
||||
}
|
||||
|
||||
if (plr->TeleportTo(mapid, x, y, z, orientation))
|
||||
plr->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user