mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Fix
This commit is contained in:
@@ -88,9 +88,8 @@ module.exports = class JengaCommand extends Command {
|
|||||||
}
|
}
|
||||||
i = picked - 1;
|
i = picked - 1;
|
||||||
}
|
}
|
||||||
const numToUse = Math.ceil(((board.length + 1) - ((board.length + 1) - (i + 1))) / 2);
|
const fell = Math.floor(Math.random() * (10 - i));
|
||||||
const notFell = Math.floor(Math.random() * numToUse);
|
if (!fell) {
|
||||||
if (!notFell) {
|
|
||||||
winner = userTurn ? opponent : msg.author;
|
winner = userTurn ? opponent : msg.author;
|
||||||
await msg.say('And the tower topples!');
|
await msg.say('And the tower topples!');
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user