mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 06:03:34 +08:00
Fix: Stuck on map withdraw because cache is not cleared
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
from module.base.resource import del_cached_property
|
||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
from module.base.utils import red_overlay_transparency, get_color
|
from module.base.utils import red_overlay_transparency, get_color
|
||||||
from module.exception import CampaignEnd
|
from module.exception import CampaignEnd
|
||||||
@@ -51,9 +52,11 @@ class EnemySearchingHandler(InfoHandler):
|
|||||||
|
|
||||||
# campaign_extract_name_image in CampaignOcr.
|
# campaign_extract_name_image in CampaignOcr.
|
||||||
try:
|
try:
|
||||||
if hasattr(self, 'campaign_extract_name_image') \
|
if hasattr(self, 'campaign_extract_name_image'):
|
||||||
and not len(self.campaign_extract_name_image(self.device.image)):
|
del_cached_property(self, '_stage_image')
|
||||||
return False
|
del_cached_property(self, '_stage_image_gray')
|
||||||
|
if not len(self.campaign_extract_name_image(self.device.image)):
|
||||||
|
return False
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user