mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 18:40:41 +08:00
Fix: Clear click record on each battle and each campaign (fixed #447)
This commit is contained in:
@@ -5,7 +5,6 @@ import os
|
||||
from module.campaign.assets import *
|
||||
from module.campaign.campaign_base import CampaignBase
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.config.utils import deep_get
|
||||
from module.exception import CampaignEnd, RequestHumanTakeover, ScriptEnd
|
||||
from module.logger import logger
|
||||
from module.ocr.ocr import Digit
|
||||
@@ -194,6 +193,7 @@ class CampaignRun(UI):
|
||||
logger.info(f'Count: {self.run_count}')
|
||||
|
||||
# UI ensure
|
||||
self.device.click_record_clear()
|
||||
if not hasattr(self.device, 'image') or self.device.image is None:
|
||||
self.device.screenshot()
|
||||
self.campaign.device.image = self.device.image
|
||||
|
||||
@@ -209,6 +209,7 @@ class AutoSearchCombat(MapOperation, Combat):
|
||||
submarine_mode = self.config.Submarine_Mode
|
||||
self.combat_auto_reset()
|
||||
self.combat_manual_reset()
|
||||
self.device.click_record_clear()
|
||||
if emotion_reduce:
|
||||
self.emotion.reduce(fleet_index)
|
||||
auto = self.config.Fleet_Fleet1Mode if fleet_index == 1 else self.config.Fleet_Fleet2Mode
|
||||
|
||||
@@ -230,6 +230,7 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
||||
self.submarine_call_reset()
|
||||
self.combat_auto_reset()
|
||||
self.combat_manual_reset()
|
||||
self.device.click_record_clear()
|
||||
confirm_timer = Timer(10)
|
||||
confirm_timer.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user