Add Checkered1 + fix last move highlights
[vchess.git] / client / src / variants / Horde.js
index 6305c41..aac4d27 100644 (file)
@@ -51,8 +51,8 @@ export class HordeRules extends ChessRules {
     return super.filterValid(moves);
   }
 
-  getCheckSquares(color) {
-    if (color == 'w') return [];
+  getCheckSquares() {
+    if (this.turn == 'w') return [];
     return (
       this.underCheck('b')
         ? [JSON.parse(JSON.stringify(this.kingPos['b']))]