Don't put vanished players in WinEffectManager's teamList either
This commit is contained in:
parent
2b3563e86e
commit
0b02f6d1df
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue