mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Add: Logic fleet_2_rescue, Logic for chapter 3
- Fix camera outside map caused by info bar - Fix mis-detection of is_caught_by_siren - Fix grid attribute is_caught_by_siren will be kept to next attack - Fix find_current_fleet when ammo icon of another fleet is covered by the green arrow of current fleet - Fix fleet_boss_index - Fix can not predict when boss appear on fleet's face
This commit is contained in:
@@ -111,7 +111,15 @@ class Camera(InfoHandler):
|
||||
self.grids.update(image=self.device.image)
|
||||
return True
|
||||
|
||||
self.grids = Grids(self.device.image, config=self.config)
|
||||
try:
|
||||
self.grids = Grids(self.device.image, config=self.config)
|
||||
except PerspectiveError as e:
|
||||
if self.info_bar_count():
|
||||
logger.info('Perspective error cause by info bar. Waiting.')
|
||||
self.handle_info_bar()
|
||||
return self.update(camera=camera)
|
||||
else:
|
||||
raise e
|
||||
|
||||
# Catch perspective error
|
||||
known_exception = self.info_bar_count()
|
||||
|
||||
Reference in New Issue
Block a user