This commit is contained in:
Dragon Fire
2021-05-02 09:03:05 -04:00
parent 08eaa37ef6
commit ea0a9d89b3
+2
View File
@@ -64,6 +64,7 @@ module.exports = class RussianRouletteCommand extends Command {
`);
if (!nextUp.bot) {
let first = true;
/* eslint-disable max-depth */
for (const next of turn) {
const nextPlayer = players.get(next);
if (!first) {
@@ -78,6 +79,7 @@ module.exports = class RussianRouletteCommand extends Command {
players.delete(next);
removeFromArray(turn, next);
}
/* eslint-enable max-depth */
}
if (players.size === 1) winner = players.first();
round++;