X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FWormhole.js;h=05d8f2ae8f84621fb253879aea029136025e3e54;hb=2a0672a98b555f0fecfd951d583e69419769d411;hp=1f3ecd2a09423db30b2eecaaf34bec9a00a841c2;hpb=e50a802531b99829c533f22ecd21e359e7e1e049;p=vchess.git diff --git a/client/src/variants/Wormhole.js b/client/src/variants/Wormhole.js index 1f3ecd2a..05d8f2ae 100644 --- a/client/src/variants/Wormhole.js +++ b/client/src/variants/Wormhole.js @@ -1,6 +1,7 @@ import { ChessRules } from "@/base_rules"; export class WormholeRules extends ChessRules { + static get HasFlags() { return false; } @@ -56,7 +57,8 @@ export class WormholeRules extends ChessRules { // A knight shift1 = movement[0]; shift2 = movement[1]; - } else { + } + else { shift1 = movement; shift2 = null; } @@ -327,4 +329,5 @@ export class WormholeRules extends ChessRules { notation += "=" + move.appear[0].p.toUpperCase(); return notation; } + };