Core/WorldStates: Migrate conditions and criteria to new worldstate api

Port From (https://github.com/TrinityCore/TrinityCore/commit/7029b78cab620b861818fab4f94c7810caf109de)
This commit is contained in:
hondacrx
2022-06-27 15:54:38 -04:00
parent 9422b62dca
commit e5d325bf82
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ namespace Game.Entities
{
if (area != null)
{
if (InBattleground() || area.HasFlag(AreaFlags.Combat) || (area.PvpCombatWorldStateID != -1 && Global.WorldMgr.GetWorldState((WorldStates)area.PvpCombatWorldStateID) != 0))
if (InBattleground() || area.HasFlag(AreaFlags.Combat) || (area.PvpCombatWorldStateID != -1 && Global.WorldStateMgr.GetValue(area.PvpCombatWorldStateID, GetMap()) != 0))
pvpInfo.IsInHostileArea = true;
else if (IsWarModeLocalActive() || area.HasFlag(AreaFlags.Unk3))
{