1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 17:57:01 +08:00

Fix: Exit from a special zone before running auto search

This commit is contained in:
LmeSzinc
2022-01-05 20:39:32 +08:00
parent 2b94e64fc1
commit 3b0bf249af

View File

@@ -38,6 +38,11 @@ class OperationSiren(Reward, OSMap):
self.hp_reset()
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
if self.zone.is_port:
logger.info('In port, skip running first auto search')
@@ -46,11 +51,6 @@ class OperationSiren(Reward, OSMap):
self.run_auto_search()
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):
"""
Get current zone from globe map. See OSMapOperation.get_current_zone()