mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Player): Dismount on Transport Teleport (#12848)
This commit is contained in:
@@ -1535,7 +1535,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||||||
oldmap->RemovePlayerFromMap(this, false);
|
oldmap->RemovePlayerFromMap(this, false);
|
||||||
|
|
||||||
// xinef: do this before setting fall information!
|
// xinef: do this before setting fall information!
|
||||||
if (IsMounted() && (!GetMap()->GetEntry()->IsDungeon() && !GetMap()->GetEntry()->IsBattlegroundOrArena()))
|
if (IsMounted() && (!GetMap()->GetEntry()->IsDungeon() && !GetMap()->GetEntry()->IsBattlegroundOrArena()) && !m_transport)
|
||||||
{
|
{
|
||||||
AuraEffectList const& auras = GetAuraEffectsByType(SPELL_AURA_MOUNTED);
|
AuraEffectList const& auras = GetAuraEffectsByType(SPELL_AURA_MOUNTED);
|
||||||
if (!auras.empty())
|
if (!auras.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user