1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-26 10:35:03 +08:00

Fix: Enemy detection

- Log shows 'E' and wrong prediction is_siren, because attributes are kept to the next detection
- Fix missing predict also
- Fix log show DEFAULT_BUTTON for the entrance of campaign
This commit is contained in:
LmeSzinc
2020-05-31 02:49:06 +08:00
parent 589419ea91
commit 83508b94d3
4 changed files with 20 additions and 17 deletions

View File

@@ -66,7 +66,10 @@ class CampaignUI(UI, CampaignOcr):
if name not in self.stage_entrance:
logger.warning(f'Stage not found: {name}')
raise CampaignNameError
return self.stage_entrance[name]
entrance = self.stage_entrance[name]
entrance.name = name
return entrance
def ensure_campaign_ui(self, name, mode='normal'):
"""