Add Checkered1 + fix last move highlights
[vchess.git] / client / src / variants / Coregal.js
index 43775bf..d6c736f 100644 (file)
@@ -46,7 +46,8 @@ export class CoregalRules extends ChessRules {
     }
   }
 
-  getCheckSquares(color) {
+  getCheckSquares() {
+    const color = this.turn;
     let squares = [];
     const oppCol = V.GetOppCol(color);
     if (this.isAttacked(this.kingPos[color], oppCol))