projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent playing on opponent's turn in Avalanche
[vchess.git]
/
client
/
src
/
variants
/
Dark.js
diff --git
a/client/src/variants/Dark.js
b/client/src/variants/Dark.js
index
fd6d571
..
e7ba40c
100644
(file)
--- a/
client/src/variants/Dark.js
+++ b/
client/src/variants/Dark.js
@@
-83,6
+83,11
@@
export class DarkRules extends ChessRules {
}
}
+ // To always allow castling:
+ isAttacked() {
+ return false;
+ }
+
filterValid(moves) {
// Used in the interface
return moves;