aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Battleground.cpp
diff options
context:
space:
mode:
authorTeleqraph <nyrdeveloper@gmail.com>2023-05-06 20:56:01 +0200
committerGitHub <noreply@github.com>2023-05-06 20:56:01 +0200
commit15135ce16f76d1635fa5606c99822b60bced94bf (patch)
tree8a5bd8698595338fd0af7a30a9857932351fc5e8 /src/server/game/Battlegrounds/Battleground.cpp
parentca66da1c97acaff18b318b3e856d54127cb96a6b (diff)
Core/Auras: Implement SpellAuraInterruptFlags2::StartOfEncounter (#28938)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index a8a94b88733..21ca45d99db 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -481,6 +481,10 @@ inline void Battleground::_ProcessJoin(uint32 diff)
SetStatus(STATUS_IN_PROGRESS);
SetStartDelayTime(StartDelayTimes[BG_STARTING_EVENT_FOURTH]);
+ for (auto const& [guid, _] : GetPlayers())
+ if (Player* player = ObjectAccessor::FindPlayer(guid))
+ player->AtStartOfEncounter();
+
// Remove preparation
if (isArena())
{