This commit is contained in:
Dragon Fire
2021-01-22 17:00:00 -05:00
parent 9ca7838935
commit 9a80215964
+2 -2
View File
@@ -115,8 +115,8 @@ module.exports = class NimCommand extends Command {
continue;
}
}
const rowChoice = turn.first().content;
const rowPicked = Number.parseInt(choice, 10);
const rowChoice = rowTurn.first().content;
const rowPicked = Number.parseInt(rowChoice, 10);
if (rowChoice.toLowerCase() === 'end') {
winner = userTurn ? opponent : msg.author;
break;