From 5fb7f91fd722e5f4046c8ae39edfb4f29448bd59 Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Sat, 4 May 2024 15:30:12 +0800 Subject: [PATCH] Fix: missing cl1 task call when globe_goto a zone --- module/os/operation_siren.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/os/operation_siren.py b/module/os/operation_siren.py index bb1b7e2dcb..5411b579af 100644 --- a/module/os/operation_siren.py +++ b/module/os/operation_siren.py @@ -377,7 +377,12 @@ def os_meowfficer_farming(self): .sort_by_clock_degree(center=(1252, 1012), start=self.zone.location) logger.hr(f'OS meowfficer farming, zone_id={zones[0].zone_id}', level=1) - self.globe_goto(zones[0]) + try: + self.globe_goto(zones[0]) + except ActionPointLimit: + if self.is_cl1_enabled and self.get_yellow_coins() >= self.config.OS_CL1_YELLOW_COINS_PRESERVE: + self.config.task_call('OpsiHazard1Leveling') + raise ActionPointLimit self.fleet_set(self.config.OpsiFleet_Fleet) self.os_order_execute( recon_scan=False,