From 2daac8b1bc10c762b8e8fce3c7a25759d2d207a9 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Mon, 26 Dec 2022 14:49:58 +1100 Subject: [PATCH] Allow out-of-bounds spaces to be highlighted --- TableturfBattleClient/src/Board.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableturfBattleClient/src/Board.ts b/TableturfBattleClient/src/Board.ts index 8d6512c..18cb6b7 100644 --- a/TableturfBattleClient/src/Board.ts +++ b/TableturfBattleClient/src/Board.ts @@ -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) {