Skip to content

Commit 9fe9c6d

Browse files
committed
Emu: Add __noAutomove when emulating at end of year
1 parent 8282edc commit 9fe9c6d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/games/emu.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ export class EmuGame extends GameBase {
420420
public results: Array<APMoveResult> = [];
421421
private deck!: Deck;
422422
private selected: string|undefined;
423+
// @ts-expect-error (This is only read by the frontend code)
424+
private __noAutomove?: boolean;
423425

424426
public static readonly BOARD_UNIT_DIMENSIONS = 50; // 48.61114501953125;
425427

@@ -884,7 +886,12 @@ export class EmuGame extends GameBase {
884886
}
885887
}
886888

887-
if (partial || emulation ) { return this; }
889+
if (partial || emulation ) {
890+
if (emulation) {
891+
this.__noAutomove = true;
892+
}
893+
return this;
894+
}
888895

889896
this.lastmove = m;
890897
// update currplayer

0 commit comments

Comments
 (0)