Core/Player: Add helper function to determine if war mode can be enabled in area
Port From (https://github.com/TrinityCore/TrinityCore/commit/626c8f5de12daac6b88989807eba65d3d7a061dd)
This commit is contained in:
@@ -511,7 +511,7 @@ namespace Game.Entities
|
||||
if (area.IsSanctuary())
|
||||
return false;
|
||||
|
||||
if (area.Flags[0].HasAnyFlag(AreaFlags.Arena))
|
||||
if (area.Flags.HasFlag(AreaFlags.Arena))
|
||||
return true;
|
||||
|
||||
if (Global.BattleFieldMgr.GetBattlefieldToZoneId(area.Id) != null)
|
||||
|
||||
Reference in New Issue
Block a user