Fix: Sos loops if reached oil limit

- Fix: gacha_bottom_navbar_ensure when left is None
This commit is contained in:
LmeSzinc 2021-10-04 00:46:23 +08:00
parent 8ccb9a67b2
commit af10c5df68
2 changed files with 5 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class GachaUI(UI):
logger.info('Construct event not available, default to light')
left = 1
right = None
if left >= 4:
if left == 4:
left = 3
if gacha_bottom_navbar.set(self, left=left, right=right) \

View File

@ -187,7 +187,10 @@ class CampaignSos(CampaignRun, CampaignBase):
name = f'campaign_{self.config.Sos_Chapter}_5'
self.config.override(Campaign_Name=name)
super().run(name, folder=folder, mode=mode, total=total)
continue
if self.run_count > 0:
continue
else:
self.config.task_stop()
else:
self.ui_click(SIGNAL_SEARCH_CLOSE, appear_button=SIGNAL_LIST_CHECK, check_button=CAMPAIGN_CHECK,
skip_first_screenshot=True)