diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 8a9c9614..3c4d0da9 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -76,7 +76,7 @@ module.exports = class ChessCommand extends Command { const move = choice.match(turnRegex); if (!move) return false; const moves = game.moves(); - if (!moves[move[1]].includes(move[2])) { + if (!moves[move[1]] || !moves[move[1]].includes(move[2])) { reactIfAble(res, res.author, FAILURE_EMOJI_ID, '❌'); return false; }