X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=base_rules.js;h=6efce0206a96a0bd12e0ae37c09ec2baa8e29f3f;hp=0dfe217e284c6d63f8e94c7e8af31a3ffdedc696;hb=6f74b81a893da23181f30e2ef1e68bde8a5476cd;hpb=3a77a0b4c3ba2f767a81ef688ae6aa70b95250be diff --git a/base_rules.js b/base_rules.js index 0dfe217..6efce02 100644 --- 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); - if (oppKingPos[0] >= 0 && !this.underCheck(oppKingPos, color)) { + if ( + oppKingPos[0] >= 0 && + ( + this.options["taking"] || + !this.underCheck(oppKingPos, color) + ) + ) { this.subTurn++; return; }