Stop mid game joiners from getting participation gems.
This commit is contained in:
parent
e96b4c4a7f
commit
b40f018ee2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user