Don't put vanished players in WinEffectManager's teamList either

This commit is contained in:
ArcticZeroo 2017-11-02 15:57:21 -04:00 committed by Alexander Meech
parent 2b3563e86e
commit 0b02f6d1df
1 changed files with 9 additions and 4 deletions

View File

@ -1520,13 +1520,18 @@ public abstract class Game extends ListenerComponent implements Lifetimed
{
List<Player> teamList = new ArrayList<>();
List<Player> otherList = new ArrayList<>();
teamList.addAll(team.GetPlacements(true));
otherList.addAll(UtilServer.getPlayersCollection()
.stream()
teamList.addAll(team.GetPlacements(true).stream()
.distinct()
.filter((p) -> !getArcadeManager().isVanished(p))
.collect(Collectors.toList()));
otherList.removeAll(teamList);
otherList.addAll(UtilServer.getPlayersCollection()
.stream()
.distinct()
.filter((p) -> !getArcadeManager().isVanished(p) && !teamList.contains(p))
.collect(Collectors.toList()));
Player player = teamList.remove(0);
WinEffectManager.prePlay(this, player, teamList, otherList);