This commit is contained in:
Daniel Odendahl Jr
2017-10-23 02:50:23 +00:00
parent edd3f35192
commit a0db9aaa13
+6 -4
View File
@@ -73,11 +73,13 @@ module.exports = class WizardConventionCommand extends Command {
} }
const choice = parseInt(decision.first().content, 10); const choice = parseInt(decision.first().content, 10);
if (player.role === 'dragon') { if (player.role === 'dragon') {
eaten = players.get(choice).id; const chosen = players.get(choice);
await player.user.send(`${choice} will be eaten...`); eaten = chosen.id;
await player.user.send(`${chosen.user.tag} will be eaten...`);
} else if (player.role === 'healer') { } else if (player.role === 'healer') {
healed = players.get(choice).id; const chosen = players.get(choice);
await player.user.send(`${choice} will be healed...`); healed = chosen.id;
await player.user.send(`${chosen.user.tag} will be healed...`);
} else if (player.role === 'mind reader') { } else if (player.role === 'mind reader') {
await player.user.send(players.find('role', 'dragon').id === choice ? 'Yes.' : 'No.'); await player.user.send(players.find('role', 'dragon').id === choice ? 'Yes.' : 'No.');
} }