mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-08-17 04:18:53 +08:00
Fix: match templates in nested list in TEMPLATE_COMMON_DD
This commit is contained in:
@@ -281,6 +281,8 @@ class GemsFarming(CampaignRun, Dock):
|
||||
candidates = []
|
||||
for ship in ships:
|
||||
for template in templates:
|
||||
if isinstance(template, list):
|
||||
return self.find_candidates(template, scanner, output)
|
||||
if template.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE):
|
||||
candidates.append(ship)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user