Fix blocking applied to multiple pieces.

This commit is contained in:
yukirij 2024-08-18 00:07:29 -07:00
parent a8393e0df9
commit e3def36694

View File

@ -433,14 +433,16 @@ GAME.Game = class {
for(let idist = 1; idist < dist; idist++) {
if(GAME_DATA.board.tiles[tiles[tiles.length - idist].tile].piece !== null) {
tiles[tiles.length - idist].block = mask;
break;
}
}
}
}
pieces_blocking += 1;
valid = false;
}
pieces_blocking += 1;
}
// Handle blocking restrictions.