From da37e2b8639a5c2fa8f10d7a94acb90a7b358647 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 9 Mar 2020 13:55:53 +0100 Subject: [PATCH] Fix enpassant checks for Rifle variant (among others maybe) --- client/src/base_rules.js | 2 +- client/src/views/Game.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/base_rules.js b/client/src/base_rules.js index b39fe9c4..aec119a0 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -204,7 +204,7 @@ export const ChessRules = class ChessRules { Math.abs(s.x - e.x) == 2 && s.y == e.y && move.vanish[0].p == V.PAWN && - ["w", "b"].includes(move.appear[0].c) + ["w", "b"].includes(move.vanish[0].c) ) { return { x: (s.x + e.x) / 2, diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index a7cb6a90..f24430b8 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -161,6 +161,7 @@ export default { virtualClocks: [], vr: null, //"variant rules" object initialized from FEN drawOffer: "", + infoMessage: "", rematchOffer: "", people: {}, //players + observers onMygames: [], //opponents (or me) on "MyGames" page -- 2.44.0