Ensure team is switched before joining BG

This commit is contained in:
mik1893
2016-08-03 08:48:47 +01:00
parent eb2fd1555d
commit b465fcfe71
@@ -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]