mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
Ensure team is switched before joining BG
This commit is contained in:
@@ -450,6 +450,9 @@ void WorldSession::HandleBattleFieldPortOpcode(WorldPacket &recvData)
|
||||
teamId = TEAM_ALLIANCE;
|
||||
else
|
||||
teamId = TEAM_HORDE;
|
||||
|
||||
_player->setTeamId(teamId);
|
||||
_player->setFaction(teamId == TEAM_ALLIANCE ? 1 : 2);
|
||||
}
|
||||
// [/AZTH]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user