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

Fix: Deque index out of range in state_enhance_check state

This commit is contained in:
LmeSzinc
2023-01-16 22:25:24 +08:00
parent da93ca3769
commit 5566626d6f

View File

@@ -218,8 +218,9 @@ class Enhancement(Dock):
if state == "state_enhance_check":
# Avoid too_many_click exception caused by multiple tries without material
if state_list[-2:] == ["state_enhance_recommend", "state_enhance_fail"]:
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
self.device.click_record.pop()
if len(self.device.click_record):
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
self.device.click_record.pop()
state_list.clear()
state_list.append(state)
if len(state_list) > 30: