Fix Omega castling and pieces randomization, fix a bug when undoing partial multi...
[vchess.git] / client / src / components / Board.vue
index 56f3488..6c26722 100644 (file)
@@ -625,6 +625,13 @@ export default {
         this.processArrowAttempt(e);
       }
     },
+    // Called by BaseGame after partially undoing multi-moves:
+    resetCurrentAttempt: function() {
+      this.possibleMoves = [];
+      this.start = null;
+      this.click = "";
+      this.selectedPiece = null;
+    },
     processMoveAttempt: function(e) {
       // Obtain the move from start and end squares
       const [offsetX, offsetY] =