From 437d96edbe3430644d53c2d1b01ab31e0f43713e Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 2 Nov 2021 16:13:58 -0400 Subject: [PATCH] slashgame window cannot be at the end --- src/Infiltration/ui/SlashGame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infiltration/ui/SlashGame.tsx b/src/Infiltration/ui/SlashGame.tsx index 8f7b0a2cc..5aa633f78 100644 --- a/src/Infiltration/ui/SlashGame.tsx +++ b/src/Infiltration/ui/SlashGame.tsx @@ -45,7 +45,7 @@ export function SlashGame(props: IMinigameProps): React.ReactElement { setPhase(2); id = window.setTimeout(() => setPhase(0), difficulty.window); }, 250); - }, Math.random() * 3250 + 1500); + }, Math.random() * 3250 + 1500 - (250 + difficulty.window)); return () => { clearInterval(id); };