mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Handle exception caused by multiple tries without material
This commit is contained in:
parent
386a8660d8
commit
085231f361
@ -216,6 +216,10 @@ class Enhancement(Dock):
|
||||
logger.info(f'Call state function: {state}')
|
||||
|
||||
if state == "state_enhance_check":
|
||||
# Avoid too_many_click exception caused by multiple tries without material
|
||||
if state_list[-3:-1] == ["state_enhance_recommend", "state_enhance_fail"]:
|
||||
self.device.click_record.pop()
|
||||
self.device.click_record.pop()
|
||||
state_list.clear()
|
||||
state_list.append(state)
|
||||
if len(state_list) > 30:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user