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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user