X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FAtomic.js;h=0fd7647e62414ec5edf60f38604a9a640d422ee5;hb=d3334c3a9ee5edc9412d2c95adfc752b72057168;hp=bf860df656ced49f47ee3d526bab2f9560e917b0;hpb=f3802fcd1279e5d07cdff1341fc5e17c5296dc9c;p=vchess.git diff --git a/public/javascripts/variants/Atomic.js b/public/javascripts/variants/Atomic.js index bf860df6..0fd7647e 100644 --- a/public/javascripts/variants/Atomic.js +++ b/public/javascripts/variants/Atomic.js @@ -96,10 +96,9 @@ class AtomicRules extends ChessRules } } - undo(move) + unupdateVariables(move) { - super.undo(move); - + super.unupdateVariables(move); const c = this.getColor(move.start.x,move.start.y); const oppCol = this.getOppCol(c); if ([this.kingPos[c][0],this.kingPos[oppCol][0]].some(e => { return e < 0; }))