mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-28 14:58:10 +08:00
Fix: Deque index out of range in state_enhance_check state
This commit is contained in:
@@ -218,8 +218,9 @@ class Enhancement(Dock):
|
|||||||
if state == "state_enhance_check":
|
if state == "state_enhance_check":
|
||||||
# Avoid too_many_click exception caused by multiple tries without material
|
# Avoid too_many_click exception caused by multiple tries without material
|
||||||
if state_list[-2:] == ["state_enhance_recommend", "state_enhance_fail"]:
|
if state_list[-2:] == ["state_enhance_recommend", "state_enhance_fail"]:
|
||||||
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
|
if len(self.device.click_record):
|
||||||
self.device.click_record.pop()
|
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
|
||||||
|
self.device.click_record.pop()
|
||||||
state_list.clear()
|
state_list.clear()
|
||||||
state_list.append(state)
|
state_list.append(state)
|
||||||
if len(state_list) > 30:
|
if len(state_list) > 30:
|
||||||
|
|||||||
Reference in New Issue
Block a user