mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-04-18 14:47:24 -05:00
Fix cards not showing when skipping through replays rapidly
This commit is contained in:
parent
eadd999bcb
commit
461e26ea5d
|
|
@ -237,7 +237,9 @@ replayNextButton.buttonElement.addEventListener('click', _ => {
|
|||
|
||||
replayAnimationAbortController = new AbortController();
|
||||
(async () => {
|
||||
await playInkAnimations({ game: { state: GameState.Ongoing, board: null, turnNumber: currentGame.game.turnNumber, players: currentGame.game.players }, moves, placements: result.placements, specialSpacesActivated: result.specialSpacesActivated }, replayAnimationAbortController.signal);
|
||||
const abortSignal = replayAnimationAbortController.signal;
|
||||
await playInkAnimations({ game: { state: GameState.Ongoing, board: null, turnNumber: currentGame.game.turnNumber, players: currentGame.game.players }, moves, placements: result.placements, specialSpacesActivated: result.specialSpacesActivated }, abortSignal);
|
||||
if (abortSignal.aborted) return;
|
||||
turnNumberLabel.turnNumber = currentGame.game.turnNumber;
|
||||
clearPlayContainers();
|
||||
if (currentGame.game.turnNumber > 12) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user