projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Balaklava variant
[vchess.git]
/
client
/
src
/
variants
/
Coregal.js
diff --git
a/client/src/variants/Coregal.js
b/client/src/variants/Coregal.js
index
43775bf
..
d6c736f
100644
(file)
--- a/
client/src/variants/Coregal.js
+++ b/
client/src/variants/Coregal.js
@@
-46,7
+46,8
@@
export class CoregalRules extends ChessRules {
}
}
- getCheckSquares(color) {
+ getCheckSquares() {
+ const color = this.turn;
let squares = [];
const oppCol = V.GetOppCol(color);
if (this.isAttacked(this.kingPos[color], oppCol))