1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:39:25 +08:00

Fix: More situation for Invalid repeated operation.

This commit is contained in:
Zuosizhu
2026-02-02 22:22:03 +08:00
parent 6f8f28ab84
commit fdc2c5c0b1

View File

@@ -548,6 +548,7 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
continue
if self.info_bar_count()==1:
self.ensure_no_info_bar()
self.device.sleep(5)
for __ in self.loop():
if self.appear_then_click(AUTO_SEARCH_OS_MAP_OPTION_ON, offset=(5, 120)):
break
@@ -555,8 +556,8 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
or self.appear(BATTLE_STATUS_C) or self.appear(BATTLE_STATUS_D) or self.is_combat_executing():
break
if self.handle_map_get_items():
self.device.sleep(5)
self.appear_then_click(AUTO_SEARCH_REWARD, offset=(5, 120))
continue
if self.appear_then_click(AUTO_SEARCH_REWARD, offset=(5, 120)):
break
if self.handle_battle_status():
self.combat_status(expected_end='no_searching')