projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some debug, plan several short + long term TODOs
[vchess.git]
/
public
/
javascripts
/
variants
/
Crazyhouse.js
diff --git
a/public/javascripts/variants/Crazyhouse.js
b/public/javascripts/variants/Crazyhouse.js
index
f36bfcc
..
c4780b7
100644
(file)
--- a/
public/javascripts/variants/Crazyhouse.js
+++ b/
public/javascripts/variants/Crazyhouse.js
@@
-212,7
+212,7
@@
class CrazyhouseRules extends ChessRules
super.updateVariables(move);
if (move.vanish.length == 2 && move.appear.length == 2)
return; //skip castle
super.updateVariables(move);
if (move.vanish.length == 2 && move.appear.length == 2)
return; //skip castle
- const color =
this.turn
;
+ const color =
move.appear[0].c
;
if (move.vanish.length == 0)
{
this.reserve[color][move.appear[0].p]--;
if (move.vanish.length == 0)
{
this.reserve[color][move.appear[0].p]--;