Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types (#29535)

* Fix criteria data type bg loss team score
This commit is contained in:
Jeremy
2023-12-29 14:12:15 +01:00
committed by GitHub
parent fb64d7fe8e
commit 1ef0c04520
38 changed files with 218 additions and 212 deletions

View File

@@ -141,7 +141,7 @@ void WorldSession::HandleMoveWorldportAck()
// We're not in BG
player->SetBattlegroundId(0, BATTLEGROUND_TYPE_NONE, BATTLEGROUND_QUEUE_NONE);
// reset destination bg team
player->SetBGTeam(0);
player->SetBGTeam(TEAM_OTHER);
}
// join to bg case
else if (Battleground* bg = player->GetBattleground())