projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Monochrome: show first turn indication
[vchess.git]
/
client
/
src
/
variants
/
Horde.js
diff --git
a/client/src/variants/Horde.js
b/client/src/variants/Horde.js
index
6305c41
..
aac4d27
100644
(file)
--- a/
client/src/variants/Horde.js
+++ b/
client/src/variants/Horde.js
@@
-51,8
+51,8
@@
export class HordeRules extends ChessRules {
return super.filterValid(moves);
}
- getCheckSquares(
color
) {
- if (
color
== 'w') return [];
+ getCheckSquares() {
+ if (
this.turn
== 'w') return [];
return (
this.underCheck('b')
? [JSON.parse(JSON.stringify(this.kingPos['b']))]