mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Retry _retirement_choose() if no ship selected
This commit is contained in:
@@ -217,6 +217,9 @@ class Retirement(Enhancement):
|
|||||||
total += selected
|
total += selected
|
||||||
if selected == 0:
|
if selected == 0:
|
||||||
break
|
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()
|
self._retirement_confirm()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user