Stop mid game joiners from getting participation gems.

This commit is contained in:
Virizion 2016-02-07 17:20:58 -05:00
parent e96b4c4a7f
commit b40f018ee2

View File

@ -1771,7 +1771,17 @@ public class SpeedBuilders extends SoloGame
if (places.size() >= 3)
AddGems(places.get(2), 10, "3rd Place", false, false);
for (Player player : GetPlayers(false))
ArrayList<Player> participants = new ArrayList<Player>();
ArrayList<Player> guardians = GetTeamList().get(1).GetPlayers(false);
participants.addAll(playersTeam.GetPlayers(true));
guardians.retainAll(playersTeam.GetPlacements(true));
participants.addAll(guardians);
for (Player player : participants)
if (player.isOnline())
AddGems(player, 10, "Participation", false, false);