mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: no image copy on obscure hazard 2 template match
This commit is contained in:
@@ -266,7 +266,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
if len(items):
|
if len(items):
|
||||||
for button in items:
|
for button in items:
|
||||||
if skip_obscure_hazard_2:
|
if skip_obscure_hazard_2:
|
||||||
crop_image = crop(image, area_offset(button.area, (-25, -35)))
|
crop_image = crop(image, area_offset(button.area, (-25, -35)), copy=False)
|
||||||
if TEMPLATE_STORAGE_OBSCURE_HAZARD_2.match(crop_image, similarity=0.92):
|
if TEMPLATE_STORAGE_OBSCURE_HAZARD_2.match(crop_image, similarity=0.92):
|
||||||
continue
|
continue
|
||||||
self._storage_coordinate_checkout(button, types=(item,))
|
self._storage_coordinate_checkout(button, types=(item,))
|
||||||
|
|||||||
Reference in New Issue
Block a user