Add Checkered1 + fix last move highlights
[vchess.git] / client / src / variants / Antiking1.js
index ac28c31..ab86f69 100644 (file)
@@ -176,7 +176,8 @@ export class Antiking1Rules extends BerolinaRules {
     return res;
   }
 
-  getCheckSquares(color) {
+  getCheckSquares() {
+    const color = this.turn;
     let res = [];
     const oppCol = V.GetOppCol(color);
     if (this.isAttacked(this.kingPos[color], oppCol))