projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Flip knights for variants with knightriders (waiting for a better image)
[vchess.git]
/
client
/
src
/
variants
/
Atomic.js
diff --git
a/client/src/variants/Atomic.js
b/client/src/variants/Atomic.js
index
90089e8
..
9675c58
100644
(file)
--- a/
client/src/variants/Atomic.js
+++ b/
client/src/variants/Atomic.js
@@
-127,7
+127,8
@@
export class AtomicRules extends ChessRules {
return res;
}
- getCheckSquares(color) {
+ getCheckSquares() {
+ const color = this.turn;
let res = [];
if (
this.kingPos[color][0] >= 0 && //king might have exploded