Core/World: adapted Master branch version of world state handling

This commit is contained in:
Ovahlord committed 2022-10-08 23:13:06 +02:00
1 parent 6b8314454f
commit 2521489e2b
27 files changed
+258 -152

No files matched your search

+2 -7
View File
@@ -8800,6 +8800,8 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
packet.AreaID = zoneId;
packet.SubareaID = areaId;
sWorldStateMgr->FillInitialWorldStates(packet, GetMap());
packet.Worldstates.emplace_back(2264, 0); // 1
packet.Worldstates.emplace_back(2263, 0); // 2
packet.Worldstates.emplace_back(2262, 0); // 3
@@ -9420,13 +9422,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
break;
}
// insert realm wide world states
sWorldStateMgr->AppendRealmWorldStates(packet.Worldstates);
// insert map world states
if (Map* map = GetMap())
map->AppendWorldStates(packet.Worldstates);
SendDirectMessage(packet.Write());
SendBGWeekendWorldStates();
SendBattlefieldWorldStates();