mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 14:37:20 +08:00
Fix: info_bar_count() should be called before clicking MISSION_OVERVIEW_ACCEPT_SINGLE
This commit is contained in:
@@ -182,6 +182,10 @@ class MissionHandler(GlobeOperation, ZoneManager):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
|
if self.info_bar_count():
|
||||||
|
logger.info('Unable to accept missions, because reached the maximum number of missions')
|
||||||
|
success = False
|
||||||
|
break
|
||||||
if self.appear_then_click(MISSION_OVERVIEW_ACCEPT, offset=(20, 20), interval=0.2):
|
if self.appear_then_click(MISSION_OVERVIEW_ACCEPT, offset=(20, 20), interval=0.2):
|
||||||
confirm_timer.reset()
|
confirm_timer.reset()
|
||||||
continue
|
continue
|
||||||
@@ -194,11 +198,6 @@ class MissionHandler(GlobeOperation, ZoneManager):
|
|||||||
confirm_timer.reset()
|
confirm_timer.reset()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.info_bar_count():
|
|
||||||
logger.info('Unable to accept missions, because reached the maximum number of missions')
|
|
||||||
success = False
|
|
||||||
break
|
|
||||||
|
|
||||||
# is_in_globe
|
# is_in_globe
|
||||||
self.ui_back(appear_button=MISSION_OVERVIEW_CHECK, check_button=self.is_in_globe,
|
self.ui_back(appear_button=MISSION_OVERVIEW_CHECK, check_button=self.is_in_globe,
|
||||||
skip_first_screenshot=True)
|
skip_first_screenshot=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user