From f02a960299c4b2da2b1bf2e7a493c09c4370db56 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 2 May 2021 08:58:37 -0400 Subject: [PATCH] Fix --- commands/games-mp/russian-roulette.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/russian-roulette.js b/commands/games-mp/russian-roulette.js index 2dc33294..27cf3d70 100644 --- a/commands/games-mp/russian-roulette.js +++ b/commands/games-mp/russian-roulette.js @@ -56,11 +56,12 @@ module.exports = class RussianRouletteCommand extends Command { await msg.say(`**${player.user.tag}** pulls the trigger... **And dies!**`); loser = player; } else { + const nextUp = players.get(turn[0]).user; await msg.say(stripIndents` **${player.user.tag}** pulls the trigger... **And lives...** - ${player.user.bot ? '' : `Will you take the gun, ${players.get(turn[0]).user}?`} + ${nextUp.bot ? '' : `Will you take the gun, ${nextUp.user}?`} `); - if (!player.user.bot) { + if (!nextUp.bot) { let first = true; for (const next of turn) { const nextPlayer = players.get(next);