mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +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
|
||||
|
||||
Reference in New Issue
Block a user