Fix knight alt move non-blocking case.

This commit is contained in:
yukirij 2024-11-24 13:27:21 -08:00
parent 9ca78fb8d7
commit da84e49ad3

View File

@ -646,7 +646,7 @@ GAME.Game = class {
// Check all tiles if not blocking. // Check all tiles if not blocking.
if(block_directions == 0) { if(block_directions == 0) {
for(let i = 0; i < GAME_DATA.board.tiles.length; ++i) { for(let i = 0; i < GAME_DATA.board.tiles.length; ++i) {
if(this.placable_tile(piece, i, {check:false})) { if(this.board.tiles[tile_id].piece === null) {
tiles.push(new GAME.MovementTile(i, true, false, 0, 0)); tiles.push(new GAME.MovementTile(i, true, false, 0, 0));
} }
} }