diff --git a/OOP_3B5_Project/src/backend/Move.java b/OOP_3B5_Project/src/backend/Move.java index 2336cc3..5608386 100644 --- a/OOP_3B5_Project/src/backend/Move.java +++ b/OOP_3B5_Project/src/backend/Move.java @@ -36,7 +36,7 @@ public class Move { if (board.isAPieceThere(toX, toY)){//checking if a piece is at the arrival coordinates needPieceDeletion(toX, toY); //if a piece is at arrival coord, remove the piece } - specialMoves.pawnPromotion(movingPiece); + specialMoves.pawnPromotion(movingPiece, toY); movingPiece.setX(toX); // change coordinates to the new coordinate movingPiece.setY(toY); board.setTurnNb(turnNb + 1);