mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-12 10:13:35 +08:00
Fix: Deque index out of range in state_enhance_check state
This commit is contained in:
@@ -218,6 +218,7 @@ 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"]:
|
||||||
|
if len(self.device.click_record):
|
||||||
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
|
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
|
||||||
self.device.click_record.pop()
|
self.device.click_record.pop()
|
||||||
state_list.clear()
|
state_list.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user