Allow out-of-bounds spaces to be highlighted

This commit is contained in:
Andrio Celos
2022-12-26 14:49:58 +11:00
parent beec071387
commit 2daac8b1bc

View File

@@ -168,7 +168,7 @@ class Board {
continue;
for (let dy = 0; dy < 8; dy++) {
const y2 = this.highlightY + dy;
if (y2 < 0 || y2 >= this.grid[x2].length || this.grid[x2][y2] == Space.OutOfBounds)
if (y2 < 0 || y2 >= this.grid[x2].length)
continue;
const space = this.cardPlaying.getSpace(dx, dy, this.cardRotation);
if (space != Space.Empty) {