projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo for en passant captures
[vchess.git]
/
client
/
src
/
variants
/
Cannibal.js
diff --git
a/client/src/variants/Cannibal.js
b/client/src/variants/Cannibal.js
index
3a87a72
..
f7a9514
100644
(file)
--- a/
client/src/variants/Cannibal.js
+++ b/
client/src/variants/Cannibal.js
@@
-207,8
+207,9
@@
export class CannibalRules extends ChessRules {
this.kingPos[c][0] = move.appear[0].x;
this.kingPos[c][1] = move.appear[0].y;
this.castleFlags[c] = [V.size.y, V.size.y];
this.kingPos[c][0] = move.appear[0].x;
this.kingPos[c][1] = move.appear[0].y;
this.castleFlags[c] = [V.size.y, V.size.y];
- return;
}
}
+ // Next call is still required because the king may eat an opponent's rook
+ // TODO: castleFlags will be turned off twice then.
super.updateCastleFlags(move, piece);
}
super.updateCastleFlags(move, piece);
}