mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 18:07:23 +08:00
Merge pull request #338 from noname94/patch1
Fix: GET_ITEMS_1 raises MapDetectionError
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import numpy as np
|
||||
|
||||
from module.combat.assets import GET_ITEMS_1
|
||||
from module.exception import MapDetectionError, CampaignEnd
|
||||
from module.handler.assets import IN_MAP, GAME_TIPS
|
||||
from module.logger import logger
|
||||
@@ -98,6 +99,10 @@ class Camera(MapOperation):
|
||||
logger.info('Perspective error cause by info bar. Waiting.')
|
||||
self.handle_info_bar()
|
||||
return self.update(camera=camera)
|
||||
elif self.appear(GET_ITEMS_1):
|
||||
logger.warning('Items got. Trying handling mystery.')
|
||||
self.handle_mystery()
|
||||
return self.update(camera=camera)
|
||||
elif self.is_in_stage():
|
||||
logger.warning('Image is in stage')
|
||||
raise CampaignEnd('Image is in stage')
|
||||
|
||||
Reference in New Issue
Block a user