diff --git a/OOP_3B5_Project/src/backend/Move.java b/OOP_3B5_Project/src/backend/Move.java index b94c13e..af989ff 100644 --- a/OOP_3B5_Project/src/backend/Move.java +++ b/OOP_3B5_Project/src/backend/Move.java @@ -37,9 +37,9 @@ public class Move { needPieceDeletion(toX, toY); //if a piece is at arrival coord, remove the piece } specialMoves.pawnPromotion(movingPiece, toY); + specialMoves.setCastlingVariable(movingPiece, toX, toY); movingPiece.setX(toX); // change coordinates to the new coordinate movingPiece.setY(toY); - specialMoves.setCastlingVariable(movingPiece); board.setTurnNb(turnNb + 1); } break;