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
@@ -1812,7 +1812,7 @@ namespace Game.Achievements
return false;
break;
case ModifierTreeType.PlayersRealmWorldState: // 108
if (Global.WorldMgr.GetWorldState(reqValue) != secondaryAsset)
if (Global.WorldStateMgr.GetValue((int)reqValue, referencePlayer.GetMap()) != secondaryAsset)
return false;
break;
case ModifierTreeType.TimeBetween: // 109