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

Fix: Actively clear stuck records in combat

This commit is contained in:
LmeSzinc
2023-10-14 21:01:11 +08:00
parent e8b96eb55b
commit f23c960b97
7 changed files with 32 additions and 4 deletions

View File

@@ -38,6 +38,8 @@ class Combat(Combat_, MapEventHandler):
fleet_index (int):
"""
logger.info('Combat preparation.')
self.device.stuck_record_clear()
self.device.click_record_clear()
skip_first_screenshot = True
# if emotion_reduce:
@@ -219,6 +221,8 @@ class Combat(Combat_, MapEventHandler):
out: combat status
"""
logger.info('Auto search combat loading')
self.device.stuck_record_clear()
self.device.click_record_clear()
self.device.screenshot_interval_set('combat')
while 1:
self.device.screenshot()
@@ -236,6 +240,7 @@ class Combat(Combat_, MapEventHandler):
logger.info('Auto Search combat execute')
self.submarine_call_reset()
self.device.stuck_record_clear()
self.device.click_record_clear()
submarine_mode = 'do_not_use'
if self.config.Submarine_Fleet: