projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjustments + add en-passant to Zen rules
[vchess.git]
/
client
/
src
/
variants
/
Antiking2.js
diff --git
a/client/src/variants/Antiking2.js
b/client/src/variants/Antiking2.js
index
2dad5e4
..
a7ec2a8
100644
(file)
--- a/
client/src/variants/Antiking2.js
+++ b/
client/src/variants/Antiking2.js
@@
-117,7
+117,8
@@
export class Antiking2Rules extends ChessRules {
return res;
}
- getCheckSquares(color) {
+ getCheckSquares() {
+ const color = this.turn;
let res = [];
const oppCol = V.GetOppCol(color);
if (this.isAttacked(this.kingPos[color], oppCol))