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:
@@ -1783,9 +1783,9 @@ namespace Game.Maps
|
||||
{
|
||||
if (wmoEntry != null && atEntry != null)
|
||||
{
|
||||
if (atEntry.Flags[0].HasAnyFlag(AreaFlags.Outside))
|
||||
if (atEntry.Flags.HasFlag(AreaFlags.Outside))
|
||||
return true;
|
||||
if (atEntry.Flags[0].HasAnyFlag(AreaFlags.Inside))
|
||||
if (atEntry.Flags.HasFlag(AreaFlags.Inside))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user