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;