1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Fix: Add another port repair check condition

This commit is contained in:
LmeSzinc
2022-01-28 13:16:08 +08:00
parent b1a7f57628
commit 2a09605eb6
2 changed files with 5 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ class PortHandler(OSShopHandler):
skip_first_screenshot=True)
skip_first_screenshot = True
repaired = False
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
@@ -125,10 +126,13 @@ class PortHandler(OSShopHandler):
if self.appear_then_click(PORT_DOCK_CHECK, offset=(20, 20), interval=2):
continue
if self.handle_popup_confirm('DOCK_REPAIR'):
repaired = True
continue
# End
if self.info_bar_count():
break
if repaired and self.appear(PORT_DOCK_CHECK, offset=(20, 20)):
break
self.ui_back(appear_button=PORT_DOCK_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)