diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-09-03 16:06:43 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-09-03 16:06:43 +0200 |
commit | ba224f70ad81fa0e5d1f0c4daf197e143317cdaa (patch) | |
tree | 53eadbca61d84cb25cd81a1cd9ff3e42bd72c306 /src/server/game/Battlegrounds/Battleground.cpp | |
parent | aa32feddb7cc071266417978b422845bf3354c87 (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.cpp | 4 |
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); |