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> teamList = new ArrayList<>();
|
||||||
List<Player> otherList = new ArrayList<>();
|
List<Player> otherList = new ArrayList<>();
|
||||||
teamList.addAll(team.GetPlacements(true));
|
|
||||||
otherList.addAll(UtilServer.getPlayersCollection()
|
teamList.addAll(team.GetPlacements(true).stream()
|
||||||
.stream()
|
|
||||||
.distinct()
|
.distinct()
|
||||||
.filter((p) -> !getArcadeManager().isVanished(p))
|
.filter((p) -> !getArcadeManager().isVanished(p))
|
||||||
.collect(Collectors.toList()));
|
.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);
|
Player player = teamList.remove(0);
|
||||||
WinEffectManager.prePlay(this, player, teamList, otherList);
|
WinEffectManager.prePlay(this, player, teamList, otherList);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user