X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCoregal.js;h=d6c736f848e699d23293dc4515617e13e3dddd96;hb=af34341d92d47d14f396e7f4adb81f2a7e9d9a61;hp=43775bfd6cab725f4909087bd2ac5ec0dff0b45d;hpb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;p=vchess.git diff --git a/client/src/variants/Coregal.js b/client/src/variants/Coregal.js index 43775bfd..d6c736f8 100644 --- a/client/src/variants/Coregal.js +++ b/client/src/variants/Coregal.js @@ -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))