aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Battleground.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-07-12 16:29:00 +0200
committerShauren <shauren.trinity@gmail.com>2023-07-12 16:29:00 +0200
commit0cea730fa23473a85c47451c3bd13df816f2b6e4 (patch)
tree960078875798c5846a1aa465051da876642067e1 /src/server/game/Battlegrounds/Battleground.cpp
parent252da139adedd20c297ce7bdd2abed2234fa1bb6 (diff)
Core: Update to 10.1.5
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp10
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;