Skip to content

Commit

Permalink
Fix: should call cd_tasks only when they are not in cd
Browse files Browse the repository at this point in the history
  • Loading branch information
guoh064 committed Apr 9, 2024
1 parent 549f20d commit e9b146c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions module/os/operation_siren.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,11 @@ def os_hazard1_leveling(self):
with self.config.multi_set():
self.config.task_delay(server_update=True)
if not self.is_in_opsi_explore():
self.config.task_call('OpsiAbyssal')
self.config.task_call('OpsiStronghold')
self.config.task_call('OpsiObscure')
cd = self.nearest_task_cooling_down
if cd is None:
self.config.task_call('OpsiAbyssal')
self.config.task_call('OpsiStronghold')
self.config.task_call('OpsiObscure')
self.config.task_call('OpsiMeowfficerFarming')
self.config.task_stop()

Expand All @@ -428,9 +430,11 @@ def os_hazard1_leveling(self):
with self.config.multi_set():
self.config.task_delay(server_update=True)
if not self.is_in_opsi_explore():
self.config.task_call('OpsiAbyssal')
self.config.task_call('OpsiStronghold')
self.config.task_call('OpsiObscure')
cd = self.nearest_task_cooling_down
if cd is None:
self.config.task_call('OpsiAbyssal')
self.config.task_call('OpsiStronghold')
self.config.task_call('OpsiObscure')
self.config.task_call('OpsiMeowfficerFarming')
self.config.task_stop()

Expand Down

0 comments on commit e9b146c

Please sign in to comment.