返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+2
-0
XFEstudio/SpaceNinjaServer
fix: ignore assassin mission failure if recovery is still pending (#1726)
Closes #1724 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1726 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
5eecf11b
代码差异
1 个文件
+2
-0
@@ -132,11 +132,13 @@ export const addMissionInventoryUpdates = async (
132
132
// Somewhat heuristically detect G3 capture:
133
133
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1365
134
134
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1694
135
// - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1724
135
136
if (
136
137
inventoryUpdates.MissionFailed &&
137
138
inventoryUpdates.MissionStatus == "GS_FAILURE" &&
138
139
inventoryUpdates.ObjectiveReached &&
139
140
!inventoryUpdates.LockedWeaponGroup &&
141
!inventory.LockedWeaponGroup &&
140
142
!inventoryUpdates.LevelKeyName
141
143
) {
142
144
const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;