From d095f408af8b88a207cc45e2eafe5604c1f78c98 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 15 Nov 2018 17:49:32 +0000 Subject: [PATCH] Fix --- commands/games/mafia.js | 2 +- commands/games/wizard-convention.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/mafia.js b/commands/games/mafia.js index 892ad060..deb591ad 100644 --- a/commands/games/mafia.js +++ b/commands/games/mafia.js @@ -51,7 +51,7 @@ module.exports = class MafiaCommand extends Command { await player.user.send('Sorry, time is up!'); continue; } - const choice = valid[Number.parseInt(decision.first().content, 10)].id; + const choice = valid[Number.parseInt(decision.first().content, 10) - 1].id; if (player.role === 'mafia') { const chosen = players.get(choice); killed = chosen.id; diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index 5b09b1d9..40fcd1dd 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -51,7 +51,7 @@ module.exports = class WizardConventionCommand extends Command { await player.user.send('Sorry, time is up!'); continue; } - const choice = valid[Number.parseInt(decision.first().content, 10)].id; + const choice = valid[Number.parseInt(decision.first().content, 10) - 1].id; if (player.role === 'dragon') { const chosen = players.get(choice); eaten = chosen.id;