diff --git a/commands/games-mp/domineering.js b/commands/games-mp/domineering.js index a0228063..5414b595 100644 --- a/commands/games-mp/domineering.js +++ b/commands/games-mp/domineering.js @@ -119,6 +119,7 @@ module.exports = class DomineeringCommand extends Command { for (let i = 0; i < board.length; i++) { for (let j = 0; j < board[i].length; j++) { if (board[i][j]) continue; + if (!board[i + 1] || !board[i][j + 1]) continue; if (board[userTurn ? i + 1 : i][userTurn ? j : j + 1]) continue; possibleMoves.push(`${i},${j}`); }