diff --git a/server/artemis/remote.ts b/server/artemis/remote.ts index 23bbc73008e3..2e0246f2fe6e 100644 --- a/server/artemis/remote.ts +++ b/server/artemis/remote.ts @@ -57,7 +57,7 @@ let throttleTime: number | null = null; export const limiter = new Limiter(800); export const PM = new ProcessManager.QueryProcessManager | null>(module, async text => { if (isCommon(text) || !limiter.shouldRequest()) return null; - if (throttleTime && (Date.now() - throttleTime < 10000)) { + if (throttleTime && ((Date.now() - throttleTime) < 10000)) { return null; } if (throttleTime) throttleTime = null; @@ -90,9 +90,9 @@ export const PM = new ProcessManager.QueryProcessManager 0) continue; if (this.settings.timeoutAutoChoose && player.secondsLeft > 0 && player.knownActive) { void this.battle.stream.write(`>${player.slot} default`);