mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Fix: Actively clear stuck records in combat
This commit is contained in:
@@ -19,6 +19,8 @@ class ExerciseCombat(HpDaemon, OpponentChoose, ExerciseEquipment):
|
||||
|
||||
def _combat_preparation(self, skip_first_screenshot=True):
|
||||
logger.info('Combat preparation')
|
||||
self.device.stuck_record_clear()
|
||||
self.device.click_record_clear()
|
||||
while 1:
|
||||
if skip_first_screenshot:
|
||||
skip_first_screenshot = False
|
||||
@@ -42,6 +44,8 @@ class ExerciseCombat(HpDaemon, OpponentChoose, ExerciseEquipment):
|
||||
bool: True if wins. False if quit.
|
||||
"""
|
||||
logger.info('Combat execute')
|
||||
self.device.stuck_record_clear()
|
||||
self.device.click_record_clear()
|
||||
self.low_hp_confirm_timer = Timer(self.config.Exercise_LowHpConfirmWait, count=2).start()
|
||||
show_hp_timer = Timer(5)
|
||||
pause_interval = Timer(0.5, count=1)
|
||||
|
||||
Reference in New Issue
Block a user