projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Pandemonium (pawn drop)
[vchess.git]
/
client
/
src
/
variants
/
Avalanche.js
diff --git
a/client/src/variants/Avalanche.js
b/client/src/variants/Avalanche.js
index
edeb564
..
17e2138
100644
(file)
--- a/
client/src/variants/Avalanche.js
+++ b/
client/src/variants/Avalanche.js
@@
-25,6
+25,7
@@
export class AvalancheRules extends ChessRules {
}
canIplay(side, [x, y]) {
}
canIplay(side, [x, y]) {
+ if (side != this.turn) return false;
if (this.subTurn == 0) return (x >= V.size.x);
const c = this.getColor(x, y);
return (
if (this.subTurn == 0) return (x >= V.size.x);
const c = this.getColor(x, y);
return (