mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 16:19:03 +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
|
||||
|
||||
def scan(self, image, cached=False, output=True) -> Union[List, None]:
|
||||
return [ship for ship in super().scan(image, cached, output)
|
||||
if ship.satisfy_limitation(self.limitaion)]
|
||||
ships = super().scan(image, cached, output)
|
||||
if not cached:
|
||||
return [ship for ship in ships if ship.satisfy_limitation(self.limitaion)]
|
||||
|
||||
def move(self, vector) -> None:
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user