mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 06:07:59 +08:00
Fix: Retry _retirement_choose() if no ship selected
This commit is contained in:
parent
3f9819d66f
commit
ee0dfedc95
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user