Remove all players from the teams
This commit is contained in:
parent
187596ae3a
commit
66891667b9
1 changed files with 5 additions and 0 deletions
|
|
@ -16,6 +16,11 @@ export default (io: Server, socket: Socket, data: RandomizeTeams) => {
|
||||||
};
|
};
|
||||||
let game = games[data.game_code];
|
let game = games[data.game_code];
|
||||||
|
|
||||||
|
// Remove all players from all teams
|
||||||
|
for (var team of game.teams) {
|
||||||
|
team.removePlayers();
|
||||||
|
};
|
||||||
|
|
||||||
let players = [...game.players];
|
let players = [...game.players];
|
||||||
// game.log.info(players);
|
// game.log.info(players);
|
||||||
let new_team: 1|2 = 1;
|
let new_team: 1|2 = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue