From be65ee68ed8590468a67a5dce109555f9011cddf Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 12 Dec 2017 19:23:00 +0000 Subject: [PATCH] Fix --- commands/games/roulette.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/roulette.js b/commands/games/roulette.js index e29878c2..4296bddf 100644 --- a/commands/games/roulette.js +++ b/commands/games/roulette.js @@ -61,8 +61,8 @@ module.exports = class RouletteCommand extends Command { if (choice === 'black') return black.includes(result); if (choice === 'red') return red.includes(result); } - if (parity.includes(choice)) return parity[result % 2] === choice; - if (columns.includes(choice)) return columns[(result - 1) % 3] === choice; + if (parity.includes(choice)) return parity[(result % 2) - 1] === choice; + if (columns.includes(choice)) return columns[(result % 3) - 1] === choice; return false; } };