mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-08-17 12:23:51 +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 = []
|
candidates = []
|
||||||
for ship in ships:
|
for ship in ships:
|
||||||
for template in templates:
|
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):
|
if template.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE):
|
||||||
candidates.append(ship)
|
candidates.append(ship)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user