mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Return None if results cached
This commit is contained in:
parent
377201885d
commit
d363077de7
@ -331,8 +331,9 @@ class ShipScanner(Scanner):
|
|||||||
return candidates
|
return candidates
|
||||||
|
|
||||||
def scan(self, image, cached=False, output=True) -> Union[List, None]:
|
def scan(self, image, cached=False, output=True) -> Union[List, None]:
|
||||||
return [ship for ship in super().scan(image, cached, output)
|
ships = super().scan(image, cached, output)
|
||||||
if ship.satisfy_limitation(self.limitaion)]
|
if not cached:
|
||||||
|
return [ship for ship in ships if ship.satisfy_limitation(self.limitaion)]
|
||||||
|
|
||||||
def move(self, vector) -> None:
|
def move(self, vector) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user