diff options
author | Gildor <gildor55@gmail.com> | 2021-12-15 19:36:56 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-24 11:48:37 +0100 |
commit | 1bfbc371d5e2c756da6dc9f658cafcac5779ff60 (patch) | |
tree | bd91a555e1b0c0487a3bca35b36c87f21f107cc1 /src/server/game/Battlegrounds/Battleground.cpp | |
parent | cc94b595cfea17e2f524cad402b99f9db9909982 (diff) |
Core/Battlegrounds: Avoid reset BG and Arena scoreboard stats and BG map achievement criterias when relogin if player was already in the BG (#27280)
(cherry picked from commit fade6fbf4fab1c520de72417cbfb1c7a6dc69c32)
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 8bf9867a4d3..715c497fa30 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -1121,7 +1121,8 @@ void Battleground::AddPlayer(Player* player) } // reset all map criterias on map enter - player->ResetCriteria(CriteriaFailEvent::LeaveBattleground, GetMapId(), true); + if (!isInBattleground) + player->ResetCriteria(CriteriaFailEvent::LeaveBattleground, GetMapId(), true); // setup BG group membership PlayerAddedToBGCheckIfBGIsRunning(player); |