projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Koopa variant: always allow castlin with a non-stunned rook
[vchess.git]
/
client
/
src
/
variants
/
Orda.js
diff --git
a/client/src/variants/Orda.js
b/client/src/variants/Orda.js
index
afb736a
..
1ff4898
100644
(file)
--- a/
client/src/variants/Orda.js
+++ b/
client/src/variants/Orda.js
@@
-143,7
+143,7
@@
export class OrdaRules extends ChessRules {
let j = y + step[1];
while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) {
if (!options.onlyTake) moves.push(this.getBasicMove([x, y], [i, j]));
- if (oneStep) continue outerLoop;
+ if (
!!
oneStep) continue outerLoop;
i += step[0];
j += step[1];
}