diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-07-12 16:29:00 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-07-12 16:29:00 +0200 |
commit | 0cea730fa23473a85c47451c3bd13df816f2b6e4 (patch) | |
tree | 960078875798c5846a1aa465051da876642067e1 /src/server/game/Battlegrounds/Battleground.cpp | |
parent | 252da139adedd20c297ce7bdd2abed2234fa1bb6 (diff) |
Core: Update to 10.1.5
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 198bf8f4f84..473e1124412 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -420,6 +420,8 @@ inline void Battleground::_ProcessJoin(uint32 diff) SetStatus(STATUS_IN_PROGRESS); SetStartDelayTime(StartDelayTimes[BG_STARTING_EVENT_FOURTH]); + SendPacketToAll(WorldPackets::Battleground::PVPMatchSetState(WorldPackets::Battleground::PVPMatchState::Engaged).Write()); + for (auto const& [guid, _] : GetPlayers()) if (Player* player = ObjectAccessor::FindPlayer(guid)) player->AtStartOfEncounter(); @@ -1014,14 +1016,16 @@ void Battleground::AddPlayer(Player* player) { case STATUS_NONE: case STATUS_WAIT_QUEUE: - pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchInitialize::Inactive; + pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchState::Inactive; break; case STATUS_WAIT_JOIN: + pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchState::StartUp; + break; case STATUS_IN_PROGRESS: - pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchInitialize::InProgress; + pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchState::Engaged; break; case STATUS_WAIT_LEAVE: - pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchInitialize::Complete; + pvpMatchInitialize.State = WorldPackets::Battleground::PVPMatchState::Complete; break; default: break; |