From c6624915379363caa432719a6d76a32e09d7136d Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 24 Apr 2020 02:16:24 +0200
Subject: [PATCH] Fix Madrasi rules

---
 client/src/variants/Madrasi.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/variants/Madrasi.js b/client/src/variants/Madrasi.js
index 54c1862b..ed2a8791 100644
--- a/client/src/variants/Madrasi.js
+++ b/client/src/variants/Madrasi.js
@@ -2,7 +2,7 @@ import { ChessRules } from "@/base_rules";
 
 export class MadrasiRules extends ChessRules {
   isImmobilized(sq) {
-    const oppCol = V.GetOppCol(this.turn);
+    const oppCol = V.GetOppCol(this.getColor(sq[0], sq[1]));
     const piece = this.getPiece(sq[0], sq[1]);
     let steps = [];
     switch (piece) {
-- 
2.44.0