mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-12 10:13:35 +08:00
Opt: reset opsi fleet view when cannot find current fleet in current view in OSFleet.question_goto()
This commit is contained in:
@@ -592,6 +592,12 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
|||||||
self.predict()
|
self.predict()
|
||||||
self.predict_radar()
|
self.predict_radar()
|
||||||
|
|
||||||
|
fleets = self.view.select(is_current_fleet=True)
|
||||||
|
if fleets.count == 0:
|
||||||
|
logger.warning('Current fleet not found on local view, reset camera view to current fleet.')
|
||||||
|
self.fleet_reset_view()
|
||||||
|
self.wait_until_camera_stable()
|
||||||
|
continue
|
||||||
# Calculate destination
|
# Calculate destination
|
||||||
grids = self.radar.select(is_question=True)
|
grids = self.radar.select(is_question=True)
|
||||||
if grids:
|
if grids:
|
||||||
|
|||||||
Reference in New Issue
Block a user