mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9878] Set for client battleground weekend event world state.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
2edc375e48
commit
c4247ece32
5 changed files with 21 additions and 3 deletions
|
|
@ -8369,6 +8369,23 @@ void Player::SendInitWorldStates(uint32 zoneid, uint32 areaid)
|
|||
break;
|
||||
}
|
||||
GetSession()->SendPacket(&data);
|
||||
|
||||
SendBGWeekendWorldStates();
|
||||
}
|
||||
|
||||
void Player::SendBGWeekendWorldStates()
|
||||
{
|
||||
for(uint32 i = 1; i < sBattlemasterListStore.GetNumRows(); ++i)
|
||||
{
|
||||
BattlemasterListEntry const * bl = sBattlemasterListStore.LookupEntry(i);
|
||||
if (bl && bl->HolidayWorldStateId)
|
||||
{
|
||||
if (BattleGroundMgr::IsBGWeekend(BattleGroundTypeId(bl->id)))
|
||||
SendUpdateWorldState(bl->HolidayWorldStateId,1);
|
||||
else
|
||||
SendUpdateWorldState(bl->HolidayWorldStateId,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint32 Player::GetXPRestBonus(uint32 xp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue