Core/Instances: Drop allowMount column in instance_template as it is already handled properly by SPELL_ATTR0_OUTDOORS_ONLY (#27148)

This commit is contained in:
ModoX
2021-10-23 11:42:47 +02:00
committed by GitHub
parent b6f4b53407
commit 8b171d7c01
5 changed files with 4 additions and 20 deletions

View File

@@ -173,7 +173,6 @@ void WorldSession::HandleMoveWorldportAck()
}
}
bool allowMount = !mEntry->IsDungeon() || mEntry->IsBattlegroundOrArena();
if (mInstance)
{
// check if this instance has a reset time and send it to player if so
@@ -193,15 +192,8 @@ void WorldSession::HandleMoveWorldportAck()
// check if instance is valid
if (!GetPlayer()->CheckInstanceValidity(false))
GetPlayer()->m_InstanceValid = false;
// instance mounting is handled in InstanceTemplate
allowMount = mInstance->AllowMount;
}
// mount allow check
if (!allowMount)
_player->RemoveAurasByType(SPELL_AURA_MOUNTED);
// update zone immediately, otherwise leave channel will cause crash in mtmap
uint32 newzone, newarea;
GetPlayer()->GetZoneAndAreaId(newzone, newarea);