mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Actively clear stuck records in combat
This commit is contained in:
@@ -272,10 +272,9 @@ class CampaignRun(CampaignEvent):
|
||||
name = stage.lower()
|
||||
self.is_stage_loop = True
|
||||
# Convert campaign_main to campaign hard if mode is hard and file exists
|
||||
if mode == 'hard' and folder == 'campaign_main'\
|
||||
and name in map_files('campaign_hard'):
|
||||
if mode == 'hard' and folder == 'campaign_main' and name in map_files('campaign_hard'):
|
||||
folder = 'campaign_hard'
|
||||
|
||||
|
||||
return name, folder
|
||||
|
||||
def can_use_auto_search_continue(self):
|
||||
@@ -330,6 +329,7 @@ class CampaignRun(CampaignEvent):
|
||||
logger.info(f'Count: {self.run_count}')
|
||||
|
||||
# UI ensure
|
||||
self.device.stuck_record_clear()
|
||||
self.device.click_record_clear()
|
||||
if not hasattr(self.device, 'image') or self.device.image is None:
|
||||
self.device.screenshot()
|
||||
@@ -366,6 +366,8 @@ class CampaignRun(CampaignEvent):
|
||||
break
|
||||
|
||||
# Run
|
||||
self.device.stuck_record_clear()
|
||||
self.device.click_record_clear()
|
||||
try:
|
||||
self.campaign.run()
|
||||
except ScriptEnd as e:
|
||||
|
||||
Reference in New Issue
Block a user