fix: lastmove cache bug

This commit is contained in:
2025-05-03 18:36:38 +02:00
parent 16ea1700d8
commit b2a6b23681

View File

@@ -57,6 +57,9 @@ public class PromoteCommand extends PlayerCommand {
outputSystem.onPawnPromoted(this.promoteType);
// invalidate the last move cache
board.setLastMove(null);
return CommandResult.Moved;
}