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())
|
if (!plr->GetMap()->IsDungeon() && !plr->GetMap()->IsRaid())
|
||||||
plr->SetBattlegroundEntryPoint();
|
plr->SetBattlegroundEntryPoint();
|
||||||
|
|
||||||
|
if (plr->isInFlight())
|
||||||
|
{
|
||||||
|
plr->GetMotionMaster()->MovementExpired();
|
||||||
|
plr->CleanupAfterTaxiFlight();
|
||||||
|
}
|
||||||
|
|
||||||
if (plr->TeleportTo(mapid, x, y, z, orientation))
|
if (plr->TeleportTo(mapid, x, y, z, orientation))
|
||||||
plr->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
plr->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user