mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[10781] Use BattleGround(AV)TeamIndex enum types in AV battleground code.
* Added BattleGroundAVTeamIndex enum type for 3-case special team list fo AV. * Rename BattleGroundTeamId -> BattleGroundTeamIndex for clarify * Some safe checks added and dropped bogus call RewardReputationToTeam in BattleGroundAV::HandleQuestComplete for BattleGroundTeamIndex as faction. Unclear for what it expected used so dropped.
This commit is contained in:
parent
26668c067b
commit
c2331f58bc
7 changed files with 149 additions and 141 deletions
|
|
@ -113,7 +113,7 @@ void BattleGroundEY::StartingEventOpenDoors()
|
|||
|
||||
void BattleGroundEY::AddPoints(uint32 Team, uint32 Points)
|
||||
{
|
||||
BattleGroundTeamId team_index = GetTeamIndexByTeamId(Team);
|
||||
BattleGroundTeamIndex team_index = GetTeamIndexByTeamId(Team);
|
||||
m_TeamScores[team_index] += Points;
|
||||
m_HonorScoreTics[team_index] += Points;
|
||||
if (m_HonorScoreTics[team_index] >= m_HonorTics )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue