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

Fix: Retry _retirement_choose() if no ship selected

This commit is contained in:
LmeSzinc
2021-12-21 23:04:38 +08:00
parent 3f9819d66f
commit ee0dfedc95

View File

@@ -217,6 +217,9 @@ class Retirement(Enhancement):
total += selected
if selected == 0:
break
if not (self.appear(SHIP_CONFIRM, offset=(30, 30)) and SHIP_CONFIRM.match_appear_on(self.device.image)):
logger.warning('No ship selected, retrying')
continue
self._retirement_confirm()