fix: ignore assassin mission failure if recovery is still pending
All checks were successful
Build / build (push) Successful in 1m27s
Build / build (pull_request) Successful in 1m29s

This commit is contained in:
Sainan 2025-04-18 20:54:17 +02:00
parent 8b0ba0b84a
commit 3c15d3f174

View File

@ -132,11 +132,13 @@ export const addMissionInventoryUpdates = async (
// Somewhat heuristically detect G3 capture:
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1365
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1694
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1724
if (
inventoryUpdates.MissionFailed &&
inventoryUpdates.MissionStatus == "GS_FAILURE" &&
inventoryUpdates.ObjectiveReached &&
!inventoryUpdates.LockedWeaponGroup &&
!inventory.LockedWeaponGroup &&
!inventoryUpdates.LevelKeyName
) {
const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;