1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00

Fix: duplicate QUIT clicks canceling QUIT_RECONFIRM

This commit is contained in:
LmeSzinc
2026-01-23 02:09:08 +08:00
parent bf4e06e565
commit c37a52bf9c
15 changed files with 13 additions and 8 deletions

View File

@@ -177,6 +177,15 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
return True
return False
def handle_combat_quit_reconfirm(self, interval=2):
# QUIT_RECONFIRM interval should shorter than QUIT,
# so multiple retries can be made during the interval of QUIT
if self.appear_then_click(QUIT_RECONFIRM, offset=(20, 20), interval=interval):
# reset QUIT timer to avoid duplicate QUIT clicks canceling QUIT_RECONFIRM
self.interval_reset(QUIT)
return True
return False
def ensure_combat_oil_loaded(self):
self.wait_until_stable(COMBAT_OIL_LOADING)