From a0db9aaa13133d56b4caf3a08a8cf230a64633ed Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 23 Oct 2017 02:50:23 +0000 Subject: [PATCH] Fix --- commands/games/wizard-convention.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index 2ab977b0..c25a765d 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -73,11 +73,13 @@ module.exports = class WizardConventionCommand extends Command { } const choice = parseInt(decision.first().content, 10); if (player.role === 'dragon') { - eaten = players.get(choice).id; - await player.user.send(`${choice} will be eaten...`); + const chosen = players.get(choice); + eaten = chosen.id; + await player.user.send(`${chosen.user.tag} will be eaten...`); } else if (player.role === 'healer') { - healed = players.get(choice).id; - await player.user.send(`${choice} will be healed...`); + const chosen = players.get(choice); + healed = chosen.id; + await player.user.send(`${chosen.user.tag} will be healed...`); } else if (player.role === 'mind reader') { await player.user.send(players.find('role', 'dragon').id === choice ? 'Yes.' : 'No.'); }