X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FChaining%2Fclass.js;h=9d771da5995644db24de0848efb0224a6d8cb156;hb=24a6312db06bd3632ff702389c3712f77d01046d;hp=5cd4c1de2888512260f4f11ed3556e36fe228ca2;hpb=b98feb3f6bb7e03319474f7a032e296750eb179f;p=xogo.git diff --git a/variants/Chaining/class.js b/variants/Chaining/class.js index 5cd4c1d..9d771da 100644 --- a/variants/Chaining/class.js +++ b/variants/Chaining/class.js @@ -75,6 +75,7 @@ export default class ChainingRules extends ChessRules { ); } mv.chained = destPiece; //easier (no need to detect it) +// mv.drag = {c: this.turn, p: initPiece}; //TODO: doesn't work return mv; } @@ -103,7 +104,7 @@ export default class ChainingRules extends ChessRules { postPlay(move) { super.postPlay(move); - if (!!move.converted) { + if (!!move.chained) { this.lastMoveEnd.push({ x: move.end.x, y: move.end.y,