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:
Spp
2010-10-19 12:39:03 +02:00
parent 64c1b6b465
commit c2413f2698

View File

@@ -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