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

Port From (https://github.com/TrinityCore/TrinityCore/commit/8b171d7c019f0010ec05af92466261d4be78bfff)
This commit is contained in:
hondacrx
2021-11-02 13:34:29 -04:00
parent ed85016d00
commit 55746b1007
3 changed files with 2 additions and 20 deletions
-8
View File
@@ -351,7 +351,6 @@ namespace Game
}
}
bool allowMount = !mapEntry.IsDungeon() || mapEntry.IsBattlegroundOrArena();
if (mInstance != null)
{
// check if this instance has a reset time and send it to player if so
@@ -373,15 +372,8 @@ namespace Game
// 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)
GetPlayer().RemoveAurasByType(AuraType.Mounted);
// update zone immediately, otherwise leave channel will cause crash in mtmap
uint newzone, newarea;
GetPlayer().GetZoneAndAreaId(out newzone, out newarea);