From: Benjamin Auder Date: Fri, 24 Apr 2020 00:16:24 +0000 (+0200) Subject: Fix Madrasi rules X-Git-Url: https://git.auder.net/images/assets/doc/R.css?a=commitdiff_plain;h=c6624915379363caa432719a6d76a32e09d7136d;p=vchess.git Fix Madrasi rules --- 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) {