Fix Fullcavalry + complete rules. Also complete Atomic2 rules
[vchess.git] / client / src / base_rules.js
index d17ebe6..46c09a5 100644 (file)
@@ -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: