Teleport2 (no king repositioning) + do not relay some challenges
[vchess.git] / client / src / variants / Titan.js
index 9e651b0..53420e8 100644 (file)
@@ -185,7 +185,7 @@ export class TitanRules extends ChessRules {
     return moves;
   }
 
-  hoverHighlight(x, y) {
+  hoverHighlight([x, y]) {
     const c = this.turn;
     return (
       this.movesCount <= 3 &&
@@ -257,6 +257,7 @@ export class TitanRules extends ChessRules {
       if (
         V.AUGMENTED_PIECES.includes(move.vanish[0].p) ||
         (
+          move.appear.length >= 2 &&
           move.vanish.length >= 2 &&
           V.AUGMENTED_PIECES.includes(move.vanish[1].p)
         )