1
0
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:
2026-08-16 02:05:55 +08:00
parent e971b70412
commit 964e2cd6e5

View File

@@ -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