From 5b1af18b5e887b20d9ea2d093a80e2bc298416be Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 11 May 2020 12:20:14 -0400 Subject: [PATCH] Fix --- commands/games-mp/poker.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index 50a15a13..939ab090 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -86,8 +86,9 @@ module.exports = class PokerCommand extends Command { highestBetter: bigBlind }; let turnOver = false; - const turnRotation = rotation; - turnRotation.push(turnRotation[0], turnRotation[1]); + const turnRotation = rotation.slice(0); + if (players.size === 2) turnRotation.push(turnRotation[1], turnRotation[0]); + else turnRotation.push(turnRotation[0], turnRotation[1]); turnRotation.shift(); turnRotation.shift(); while (!turnOver) turnOver = await this.bettingRound(msg, players, turnRotation, data); @@ -215,7 +216,7 @@ module.exports = class PokerCommand extends Command { const actions = this.determineActions(turnPlayer, data.currentBet); const displayActions = list(actions.map(action => `\`${action}\``), 'or'); await msg.say(stripIndents` - **Pot: $${formatNumber(data.currentBet)}** + **Pot: $${formatNumber(data.pot)}** _Highest Bet: $${formatNumber(data.currentBet)} (${data.highestBetter.user.tag})_ ${turnPlayer.user}, what do you want to do? You can ${displayActions}.