X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAllmate1.js;h=f3c0b2ec03c05f217409cef2a96565032e755091;hb=8a9ed886b3e551e9179fce924349b6552ba574e7;hp=d07cf84767365da141bf0544f18fe8a797f0df78;hpb=fd7295e824c0199ad5a1ea40ec4b1f0630a5d806;p=vchess.git diff --git a/client/src/variants/Allmate1.js b/client/src/variants/Allmate1.js index d07cf847..f3c0b2ec 100644 --- a/client/src/variants/Allmate1.js +++ b/client/src/variants/Allmate1.js @@ -62,7 +62,7 @@ export class Allmate1Rules extends ChessRules { case V.KING: // Do not allow castling to escape from check oppMoves = super.getSlideNJumpMoves( - sq, + [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), "oneStep" );