projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doublemove ok. Still some random issues with animation
[xogo.git]
/
base_rules.js
diff --git
a/base_rules.js
b/base_rules.js
index
0dfe217
..
6efce02
100644
(file)
--- a/
base_rules.js
+++ b/
base_rules.js
@@
-2124,7
+2124,13
@@
export default class ChessRules {
(this.options["progressive"] && this.subTurn <= this.movesCount)
) {
const oppKingPos = this.searchKingPos(oppCol);
(this.options["progressive"] && this.subTurn <= this.movesCount)
) {
const oppKingPos = this.searchKingPos(oppCol);
- if (oppKingPos[0] >= 0 && !this.underCheck(oppKingPos, color)) {
+ if (
+ oppKingPos[0] >= 0 &&
+ (
+ this.options["taking"] ||
+ !this.underCheck(oppKingPos, color)
+ )
+ ) {
this.subTurn++;
return;
}
this.subTurn++;
return;
}