X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRifle.js;h=1cdbbbe4ecce35cf64cfb07c8fb548308882d843;hb=bbf668379ae5980d5068dd76cf907c87ce7ed648;hp=631fb13ab06d02082091fac34f56869e2fc445b6;hpb=e727fe31742dfb3e40eb222c94f4199e2be98453;p=vchess.git diff --git a/client/src/variants/Rifle.js b/client/src/variants/Rifle.js index 631fb13a..1cdbbbe4 100644 --- a/client/src/variants/Rifle.js +++ b/client/src/variants/Rifle.js @@ -2,7 +2,7 @@ import { ChessRules, PiPo, Move } from "@/base_rules"; export const VariantRules = class RifleRules extends ChessRules { getEpSquare(moveOrSquare) { - if (typeof moveOrSquare !== "object" || move.appear.length > 0) + if (typeof moveOrSquare !== "object" || moveOrSquare.appear.length > 0) return super.getEpSquare(moveOrSquare); // Capturing move: no en-passant return undefined;