mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 04:25:56 +08:00
Fix: Error caused by queue clean status flashback (#2841)
* Fix: Error caused by queue clean status flashback * Update gacha_reward.py
This commit is contained in:
@@ -197,15 +197,18 @@ class RewardGacha(GachaUI, GeneralShop, Retirement):
|
|||||||
confirm_mode = True # Drill, Lock Ship
|
confirm_mode = True # Drill, Lock Ship
|
||||||
# Clear button offset, or will click at the PLUS button of gems or HOME button
|
# Clear button offset, or will click at the PLUS button of gems or HOME button
|
||||||
STORY_SKIP.clear_offset()
|
STORY_SKIP.clear_offset()
|
||||||
|
queue_clean = True
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.appear(BUILD_QUEUE_EMPTY, offset=(20, 20)):
|
if self.appear(BUILD_QUEUE_EMPTY, offset=(20, 20)) and queue_clean:
|
||||||
self.gacha_side_navbar_ensure(upper=1)
|
self.gacha_side_navbar_ensure(upper=1)
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
queue_clean = False
|
||||||
|
|
||||||
if self.appear_then_click(BUILD_FINISH_ORDERS, interval=3):
|
if self.appear_then_click(BUILD_FINISH_ORDERS, interval=3):
|
||||||
confirm_timer.reset()
|
confirm_timer.reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user