mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Battleground): correctly limit Eye of the Storm max points to 1600 (#18669)
- before the max points could exceed 1600 on winning which e.g. resulted in the achievement 'The Perfect Storm' not beeing triggered correctly
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user