Core/WorldStates: Migrate battleground HolidayWorldState to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/020166649dd5afb94dddbfcc990d4bb51e231ab1)
This commit is contained in:
hondacrx
2022-07-13 17:35:10 -04:00
parent 9421aeee98
commit 6825419b88
5 changed files with 39 additions and 46 deletions
-14
View File
@@ -717,20 +717,6 @@ namespace Game.Entities
return true;
}
void SendBGWeekendWorldStates()
{
foreach (var bl in CliDB.BattlemasterListStorage.Values)
{
if (bl.HolidayWorldState != 0)
{
if (Global.BattlegroundMgr.IsBGWeekend((BattlegroundTypeId)bl.Id))
SendUpdateWorldState(bl.HolidayWorldState, 1);
else
SendUpdateWorldState(bl.HolidayWorldState, 0);
}
}
}
public void SendPvpRewards()
{
//WorldPacket packet(SMSG_REQUEST_PVP_REWARDS_RESPONSE, 24);
-1
View File
@@ -2932,7 +2932,6 @@ namespace Game.Entities
packet.AddState(3901, previousArenaSeason);
SendPacket(packet);
SendBGWeekendWorldStates();
}
public long GetBarberShopCost(List<ChrCustomizationChoice> newCustomizations)