Fix players not losing on Pick a Side

This commit is contained in:
Thanos Paravantis 2016-07-06 20:41:26 +03:00
parent 6a66d6cc92
commit 989dd98212

View File

@ -66,7 +66,6 @@ public class ChallengePickASide extends TeamChallenge
"The side with the fewest players wins.");
Settings.setUseMapHeight();
Settings.setMinPlayers(CHALLENGE_PLAYERS_MIN);
Settings.setTeamBased();
}
@ -270,6 +269,11 @@ public class ChallengePickASide extends TeamChallenge
{
setCompleted(bluePlayer);
}
for (Player redPlayer : getSecondTeam().getPlayers())
{
setLost(redPlayer);
}
}
private void selectRedAsWinners()
@ -278,5 +282,10 @@ public class ChallengePickASide extends TeamChallenge
{
setCompleted(redPlayer);
}
for (Player bluePlayer : getFirstTeam().getPlayers())
{
setLost(bluePlayer);
}
}
}