From cf4e32110cac0084f0065fd43ab43ea92e0cca4c Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:41:57 +0200 Subject: [PATCH] remove maxRotations from repsonse --- src/services/worldStateService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/worldStateService.ts b/src/services/worldStateService.ts index fe7baa02..752de8b0 100644 --- a/src/services/worldStateService.ts +++ b/src/services/worldStateService.ts @@ -1570,8 +1570,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => { if (config.worldState) { for (const [key, alert] of Object.entries(configAlerts)) { if (config.worldState[key as keyof typeof config.worldState]) { - if (alert.MissionInfo.missionType == "MT_DEFENSE") + if (alert.MissionInfo.missionType == "MT_DEFENSE") { alert.MissionInfo.maxWaveNum = defenseWavesPerRotation * (alert.MissionInfo.maxRotations ?? 1); + alert.MissionInfo.maxRotations = undefined; + } worldState.Alerts.push(alert); } }