mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: port_goto() loops between NY City and Gibraltar
This commit is contained in:
parent
b18be2ae2b
commit
0a0c0ffc20
@ -189,9 +189,16 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
|
||||
|
||||
logger.info('Goto another port then re-enter')
|
||||
prev = self.zone
|
||||
self.globe_goto(self.zone_nearest_azur_port(self.zone))
|
||||
if prev == self.name_to_zone('NY City'):
|
||||
other = self.name_to_zone('Liverpool')
|
||||
else:
|
||||
other = self.zone_nearest_azur_port(self.zone)
|
||||
self.globe_goto(other)
|
||||
self.globe_goto(prev)
|
||||
|
||||
logger.warning('Failed to solve MapWalkError when going to port')
|
||||
return False
|
||||
|
||||
def fleet_repair(self, revert=True):
|
||||
"""
|
||||
Repair fleets in nearest port.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user