mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user