From 1c519f62ff936ccda0c8fe7dc7a8640d1cf53624 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Fri, 3 Nov 2017 11:30:51 +0000 Subject: [PATCH] Fixed played arena statistics --- src/game/Battlegrounds/Battleground.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Battlegrounds/Battleground.cpp b/src/game/Battlegrounds/Battleground.cpp index 144eb6546..e4ac0d390 100644 --- a/src/game/Battlegrounds/Battleground.cpp +++ b/src/game/Battlegrounds/Battleground.cpp @@ -956,6 +956,8 @@ void Battleground::EndBattleground(TeamId winnerTeamId) // Arena lost => reset the win_rated_arena having the "no_lose" condition player->ResetAchievementCriteria(ACHIEVEMENT_CRITERIA_CONDITION_NO_LOSE, 0); } + + player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA, GetMapId()); } uint32 winner_kills = player->GetRandomWinner() ? BG_REWARD_WINNER_HONOR_LAST : BG_REWARD_WINNER_HONOR_FIRST;