- There should only be two teams when playing Archenemy, so set all the Heroes to be on the same team when starting the game

This commit is contained in:
Sol
2016-04-14 15:19:58 +00:00
parent 1e7d8bf811
commit 06f28008e9

View File

@@ -361,8 +361,8 @@ public abstract class GameLobby implements IHasGameType {
final IGuiGame gui = getGui(data.slots.indexOf(slot));
final String name = slot.getName();
final int avatar = slot.getAvatarIndex();
final int team = slot.getTeam();
final boolean isArchenemy = slot.isArchenemy();
final int team = GameType.Archenemy.equals(currentGameType) && !isArchenemy ? 1 : slot.getTeam();
final Set<AIOption> aiOptions = slot.getAiOptions();
final boolean isAI = slot.getType() == LobbySlotType.AI;