From 56303fd9920831eb5381a2383419eacb2b2ca068 Mon Sep 17 00:00:00 2001 From: Thomas <{ID}+{username}@users.noreply.github.com> Date: Sat, 12 Aug 2023 17:16:48 +0200 Subject: [PATCH] Fix for #445 --- .../src/Framework/Application/Helpers/API Helpers/MoveHelper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Chess-Challenge/src/Framework/Application/Helpers/API Helpers/MoveHelper.cs b/Chess-Challenge/src/Framework/Application/Helpers/API Helpers/MoveHelper.cs index e9cf7ebd2..a4c2ebbd3 100644 --- a/Chess-Challenge/src/Framework/Application/Helpers/API Helpers/MoveHelper.cs +++ b/Chess-Challenge/src/Framework/Application/Helpers/API Helpers/MoveHelper.cs @@ -55,6 +55,7 @@ public static (Chess.Move move, PieceType pieceType, PieceType captureType) Crea else if (startSquare.File != targetSquare.File && board.GetPiece(targetSquare).IsNull) { flag = Chess.Move.EnPassantCaptureFlag; + capturedPieceType = PieceType.Pawn; } } }