X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=46c09a5cb0f245e94705a936b245f02111d044f0;hb=a19caec0e72dd3b37af961daabc35eb789476ab1;hp=d17ebe67a075bf77484e6923ce0726266268c3be;hpb=0fb43db7c2858201e8410670b90f95ad8b138964;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index d17ebe67..46c09a5c 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -969,7 +969,7 @@ export const ChessRules = class ChessRules { ], vanish: [ // King might be initially disguised (Titan...) - new PiPo({ x: x, y: y, p: this.board[x][y][1], c: c }), + new PiPo({ x: x, y: y, p: castlingKing, c: c }), new PiPo({ x: x, y: rookPos, p: castlingPiece, c: c }) ], end: