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

Fix: Keep in map_exit loop if MAP_EXIT still appears

This commit is contained in:
LmeSzinc
2025-04-21 23:02:47 +08:00
parent e50c984211
commit 445507d7d5

View File

@@ -253,8 +253,12 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle
break
else:
confirm_timer.reset()
# If MAP_EXIT still appears, we haven't exit this zone yet
if self.appear(MAP_EXIT, offset=(20, 20)):
confirm_timer.reset()
if self.appear_then_click(MAP_EXIT, offset=(20, 20), interval=5):
# Click
if self.appear_then_click(MAP_EXIT, offset=(20, 20), interval=3):
continue
if self.handle_popup_confirm('MAP_EXIT'):
self.interval_reset(MAP_EXIT)