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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user