X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAtomic.js;h=fdc665d849bac31e88fde1d11d09bc2e89f4b552;hb=bbf668379ae5980d5068dd76cf907c87ce7ed648;hp=4aad7b72e875e24abd940fe7a40a1df6b1940de3;hpb=e727fe31742dfb3e40eb222c94f4199e2be98453;p=vchess.git diff --git a/client/src/variants/Atomic.js b/client/src/variants/Atomic.js index 4aad7b72..fdc665d8 100644 --- a/client/src/variants/Atomic.js +++ b/client/src/variants/Atomic.js @@ -2,7 +2,7 @@ import { ChessRules, PiPo } from "@/base_rules"; export const VariantRules = class AtomicRules 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;