mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 13:59:02 +08:00
Opt: reset opsi fleet view when cannot find current fleet in current view in OSFleet.question_goto()
This commit is contained in:
parent
21c92d95e3
commit
5bde6242f9
@ -592,6 +592,12 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
||||
self.predict()
|
||||
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
|
||||
grids = self.radar.select(is_question=True)
|
||||
if grids:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user