fix: lastmove cache bug
This commit is contained in:
@@ -57,6 +57,9 @@ public class PromoteCommand extends PlayerCommand {
|
|||||||
|
|
||||||
outputSystem.onPawnPromoted(this.promoteType);
|
outputSystem.onPawnPromoted(this.promoteType);
|
||||||
|
|
||||||
|
// invalidate the last move cache
|
||||||
|
board.setLastMove(null);
|
||||||
|
|
||||||
return CommandResult.Moved;
|
return CommandResult.Moved;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user