feat(Core/Battleground): Add config to allow giving points at level 7… (#17821)

* feat(Core/Battleground): Add config to allow giving points at level 70 RBG

* update

* Update Battleground.h
This commit is contained in:
Andrew
2023-11-22 16:10:22 -03:00
committed by GitHub
parent 87b5120250
commit 70e5851c8a
5 changed files with 11 additions and 2 deletions

View File

@@ -861,7 +861,7 @@ void Battleground::EndBattleground(PvPTeamId winnerTeamId)
UpdatePlayerScore(player, SCORE_BONUS_HONOR, GetBonusHonorFromKill(winner_kills));
// Xinef: check player level and not bracket level if (CanAwardArenaPoints())
if (player->GetLevel() >= BG_AWARD_ARENA_POINTS_MIN_LEVEL)
if (player->GetLevel() >= sWorld->getIntConfig(CONFIG_DAILY_RBG_MIN_LEVEL_AP_REWARD))
player->ModifyArenaPoints(winner_arena);
if (!player->GetRandomWinner())