From 1cb62e72216f93bc191cfc054e74d89bdbccdf22 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 12 May 2020 11:09:51 -0400 Subject: [PATCH] Fix lint --- commands/games-mp/poker.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index a9b161dd..5ba45d29 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -260,10 +260,12 @@ module.exports = class PokerCommand extends Command { let choiceAction; if (msgs.size) { choiceAction = msgs.first().content.toLowerCase().replace(/[$,]/g, ''); + } else if (turnPlayer.currentBet !== data.currentBet) { + choiceAction = 'fold'; + } else if (data.currentBet === turnPlayer.currentBet) { + choiceAction = 'check'; } else { - if (turnPlayer.currentBet !== data.currentBet) choiceAction = 'fold'; - else if (data.currentBet === turnPlayer.currentBet) choiceAction = 'check'; - else choiceAction = 'fold'; + choiceAction = 'fold'; } const raiseValue = raiseRegex.test(choiceAction) ? Number.parseInt(choiceAction.match(raiseRegex)[1], 10) : null; if (raiseValue) {