aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Battleground.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-09-03 16:06:43 +0200
committerShauren <shauren.trinity@gmail.com>2023-09-03 16:06:43 +0200
commitba224f70ad81fa0e5d1f0c4daf197e143317cdaa (patch)
tree53eadbca61d84cb25cd81a1cd9ff3e42bd72c306 /src/server/game/Battlegrounds/Battleground.cpp
parentaa32feddb7cc071266417978b422845bf3354c87 (diff)
Core/Auras: Defined and implemented new aura interrupt flags
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index 59db44658c8..35c037159f9 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -419,7 +419,7 @@ inline void Battleground::_ProcessJoin(uint32 diff)
for (auto const& [guid, _] : GetPlayers())
if (Player* player = ObjectAccessor::FindPlayer(guid))
- player->AtStartOfEncounter();
+ player->AtStartOfEncounter(EncounterType::Battleground);
// Remove preparation
if (isArena())
@@ -856,7 +856,7 @@ void Battleground::RemovePlayerAtLeave(ObjectGuid guid, bool Transport, bool Sen
player->RemoveAura(SPELL_MERCENARY_SHAPESHIFT);
player->RemovePlayerFlagEx(PLAYER_FLAGS_EX_MERCENARY_MODE);
- player->AtEndOfEncounter();
+ player->AtEndOfEncounter(EncounterType::Battleground);
player->RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::LeaveArenaOrBattleground);