From 3fbb4b89ffd9814408201190ebd24fde416cb6e1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 22 Nov 2020 11:52:40 -0500 Subject: [PATCH] Fix --- commands/games-mp/poker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index beb632c1..b657d9a5 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -65,7 +65,7 @@ module.exports = class PokerCommand extends Command { }); } let winner = null; - const rotation = players.map(p => p.id); + let rotation = players.map(p => p.id); while (!winner) { const bigBlind = players.get(rotation[1]); bigBlind.money -= bigBlindAmount; @@ -166,7 +166,7 @@ module.exports = class PokerCommand extends Command { } await this.resetGame(msg, players, deck); for (const playerID of rotation) { - if (!players.has(playerID)) removeFromArray(rotation, playerID); + if (!players.has(playerID)) rotation = removeFromArray(rotation, playerID); } if (players.size < 2) { winner = players.first();