mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
Fix
This commit is contained in:
@@ -86,7 +86,7 @@ module.exports = class TicTacToeCommand extends Command {
|
|||||||
sides[opponent.bot && !userTurn ? choice : Number.parseInt(choice, 10) - 1] = sign;
|
sides[opponent.bot && !userTurn ? choice : Number.parseInt(choice, 10) - 1] = sign;
|
||||||
taken.push(choice);
|
taken.push(choice);
|
||||||
const win = this.verifyWin(sides, msg.author, opponent);
|
const win = this.verifyWin(sides, msg.author, opponent);
|
||||||
if (taken.length === 8 && !win) win = 'tie';
|
if (taken.length === 8 && !win) winner = 'tie';
|
||||||
if (win) winner = win;
|
if (win) winner = win;
|
||||||
if (lastTurnTimeout) lastTurnTimeout = false;
|
if (lastTurnTimeout) lastTurnTimeout = false;
|
||||||
userTurn = !userTurn;
|
userTurn = !userTurn;
|
||||||
|
|||||||
Reference in New Issue
Block a user