Fix blocking applied to multiple pieces.
This commit is contained in:
parent
a8393e0df9
commit
e3def36694
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user