mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix
This commit is contained in:
@@ -51,7 +51,7 @@ module.exports = class MafiaCommand extends Command {
|
|||||||
await player.user.send('Sorry, time is up!');
|
await player.user.send('Sorry, time is up!');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const choice = Number.parseInt(decision.first().content, 10);
|
const choice = valid[Number.parseInt(decision.first().content, 10)].id;
|
||||||
if (player.role === 'mafia') {
|
if (player.role === 'mafia') {
|
||||||
const chosen = players.get(choice);
|
const chosen = players.get(choice);
|
||||||
killed = chosen.id;
|
killed = chosen.id;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ module.exports = class WizardConventionCommand extends Command {
|
|||||||
await player.user.send('Sorry, time is up!');
|
await player.user.send('Sorry, time is up!');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const choice = Number.parseInt(decision.first().content, 10);
|
const choice = valid[Number.parseInt(decision.first().content, 10)].id;
|
||||||
if (player.role === 'dragon') {
|
if (player.role === 'dragon') {
|
||||||
const chosen = players.get(choice);
|
const chosen = players.get(choice);
|
||||||
eaten = chosen.id;
|
eaten = chosen.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user