better undo
This commit is contained in:
@@ -32,7 +32,7 @@ public class CommandExecutor {
|
||||
return;
|
||||
|
||||
if (command instanceof MoveCommand move) {
|
||||
boolean needsPromote = this.game.checkPromotion(move.getMove().getFinish());
|
||||
boolean needsPromote = this.game.pawnShouldBePromoted();
|
||||
if (needsPromote)
|
||||
this.outputSystem.promotePawn(move.getMove().getFinish());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user