projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix kingPos bug when taking en-passant in Atomic
[vchess.git]
/
public
/
javascripts
/
variants
/
Atomic.js
diff --git
a/public/javascripts/variants/Atomic.js
b/public/javascripts/variants/Atomic.js
index
997a70e
..
21fbedb
100644
(file)
--- a/
public/javascripts/variants/Atomic.js
+++ b/
public/javascripts/variants/Atomic.js
@@
-60,9
+60,7
@@
class AtomicRules extends ChessRules
{
super.updateVariables(move);
const color = this.getColor(move.start.x,move.start.y);
{
super.updateVariables(move);
const color = this.getColor(move.start.x,move.start.y);
- // Next condition to avoid conflicts with harmless castle moves
- if (color != this.getColor(move.end.x,move.end.y)
- && this.board[move.end.x][move.end.y] != VariantRules.EMPTY)
+ if (move.appear.length == 0) //capture
{
const firstRank = {"w": 7, "b": 0};
for (let c of ["w","b"])
{
const firstRank = {"w": 7, "b": 0};
for (let c of ["w","b"])