mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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!');
|
||||
continue;
|
||||
}
|
||||
const choice = Number.parseInt(decision.first().content, 10);
|
||||
const choice = valid[Number.parseInt(decision.first().content, 10)].id;
|
||||
if (player.role === 'mafia') {
|
||||
const chosen = players.get(choice);
|
||||
killed = chosen.id;
|
||||
|
||||
@@ -51,7 +51,7 @@ module.exports = class WizardConventionCommand extends Command {
|
||||
await player.user.send('Sorry, time is up!');
|
||||
continue;
|
||||
}
|
||||
const choice = Number.parseInt(decision.first().content, 10);
|
||||
const choice = valid[Number.parseInt(decision.first().content, 10)].id;
|
||||
if (player.role === 'dragon') {
|
||||
const chosen = players.get(choice);
|
||||
eaten = chosen.id;
|
||||
|
||||
Reference in New Issue
Block a user