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

Fix: BATTLE_STATUS detection in os ash combat

This commit is contained in:
LmeSzinc
2021-03-31 16:35:40 +08:00
parent 4866584e1b
commit 38fa6b4183

View File

@@ -34,7 +34,8 @@ class AshCombat(Combat):
"""
if self.is_combat_executing():
return False
if self.appear_then_click(BATTLE_STATUS, screenshot=save_get_items, genre='status', interval=3):
if self.appear_then_click(BATTLE_STATUS, offset=(20, 20),
screenshot=save_get_items, genre='status', interval=3):
if not save_get_items:
self.device.sleep((0.25, 0.5))
return True