X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FStealthbomb1.js;fp=client%2Fsrc%2Fvariants%2FStealthbomb.js;h=dce7f5a907fb526160b159ef79427182dd94512c;hp=ee73ef544826b43916be712a809238670ab0b52f;hb=278a28a16bfee8c64746e2ec1423259009bff886;hpb=27ebf6afe4671ce23758724d308b2f9cf2b5b815 diff --git a/client/src/variants/Stealthbomb.js b/client/src/variants/Stealthbomb1.js similarity index 97% rename from client/src/variants/Stealthbomb.js rename to client/src/variants/Stealthbomb1.js index ee73ef54..dce7f5a9 100644 --- a/client/src/variants/Stealthbomb.js +++ b/client/src/variants/Stealthbomb1.js @@ -1,6 +1,6 @@ import { ChessRules, Move, PiPo } from "@/base_rules"; -export class StealthbombRules extends ChessRules { +export class Stealthbomb1Rules extends ChessRules { static get CanAnalyze() { return false; @@ -84,7 +84,7 @@ export class StealthbombRules extends ChessRules { this.movesCount >= 2 || ( (c == 'w' && square[0] < 6) || - (c == 'b' && square[0] > 2) + (c == 'b' && square[0] > 1) ) ) { return null; @@ -94,7 +94,8 @@ export class StealthbombRules extends ChessRules { return new Move({ appear: [ new PiPo({ x: x, y: y, c: c, p: V.BOMB_CODE[piece] }) ], vanish: [ new PiPo({ x: x, y: y, c: c, p: piece }) ], - start: { x: -1, y: -1 } + start: { x: -1, y: -1 }, + end: { x: x, y: y, noHighlight: true } }); }