mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-07 03:25:31 +08:00
Fix: Exit from a special zone before running auto search
This commit is contained in:
@@ -38,6 +38,11 @@ class OperationSiren(Reward, OSMap):
|
|||||||
self.hp_reset()
|
self.hp_reset()
|
||||||
self.handle_fleet_repair(revert=False)
|
self.handle_fleet_repair(revert=False)
|
||||||
|
|
||||||
|
# Exit from special zones types, only SAFE and DANGEROUS are acceptable.
|
||||||
|
if self.is_in_special_zone():
|
||||||
|
logger.warning('OS is in a special zone type, while SAFE and DANGEROUS are acceptable')
|
||||||
|
self.map_exit()
|
||||||
|
|
||||||
# Clear current zone
|
# Clear current zone
|
||||||
if self.zone.is_port:
|
if self.zone.is_port:
|
||||||
logger.info('In port, skip running first auto search')
|
logger.info('In port, skip running first auto search')
|
||||||
@@ -46,11 +51,6 @@ class OperationSiren(Reward, OSMap):
|
|||||||
self.run_auto_search()
|
self.run_auto_search()
|
||||||
self.handle_fleet_repair(revert=False)
|
self.handle_fleet_repair(revert=False)
|
||||||
|
|
||||||
# Exit from special zones types, only SAFE and DANGEROUS are acceptable.
|
|
||||||
if self.is_in_special_zone():
|
|
||||||
logger.warning('OS is in a special zone type, while SAFE and DANGEROUS are acceptable')
|
|
||||||
self.map_exit()
|
|
||||||
|
|
||||||
def get_current_zone_from_globe(self):
|
def get_current_zone_from_globe(self):
|
||||||
"""
|
"""
|
||||||
Get current zone from globe map. See OSMapOperation.get_current_zone()
|
Get current zone from globe map. See OSMapOperation.get_current_zone()
|
||||||
|
|||||||
Reference in New Issue
Block a user