Skip to content

Commit

Permalink
fix(Core/Battleground): correctly limit Eye of the Storm max points t…
Browse files Browse the repository at this point in the history
…o 1600 (azerothcore#18669)

- before the max points could exceed 1600 on winning which e.g.
  resulted in the achievement 'The Perfect Storm' not beeing
  triggered correctly
  • Loading branch information
sudlud authored Apr 4, 2024
1 parent e863873 commit 94df67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ void BattlegroundEY::AddPoints(TeamId teamId, uint32 points)
{
uint8 honorRewards = uint8(m_TeamScores[teamId] / _honorTics);
m_TeamScores[teamId] += points;
if (m_TeamScores[teamId] > BG_EY_MAX_TEAM_SCORE)
m_TeamScores[teamId] = BG_EY_MAX_TEAM_SCORE;

for (; honorRewards < uint8(m_TeamScores[teamId] / _honorTics); ++honorRewards)
RewardHonorToTeam(GetBonusHonorFromKill(1), teamId);
Expand Down

0 comments on commit 94df67b

Please sign in to comment.