fix(Core/Battleground/PvPstats): correct bracket_id for AV (#10677)

This commit is contained in:
Francesco Borzì
2022-02-16 23:11:58 +01:00
committed by GitHub
parent 658e936ace
commit fa02edb0ae
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1644943100668922283');
UPDATE `pvpstats_battlegrounds`
SET `bracket_id` = `bracket_id` + 1
WHERE `type` = 1;

View File

@@ -2017,5 +2017,5 @@ void Battleground::RewardXPAtKill(Player* killer, Player* victim)
uint8 Battleground::GetUniqueBracketId() const
{
return GetMinLevel() / 10;
return GetMaxLevel() / 10;
}