Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/smallbomb/kirafan-bot in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
smallbomb committed Nov 27, 2021
2 parents 56a191d + f52d9a4 commit 91dc3aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,8 @@ def _ck_move_to_next_battle(bot) -> bool:
def _battle_resume(bot):
logging.warning('try to resume battle...')
kirafan.objects['center'].click_sec(100)
while True:
if kirafan.icons['ok'].click():
sleep(2)
continue
break
while kirafan.icons['ok'].click():
sleep(2)
if kirafan.icons['hai'].click():
logging.info('resume battle')
kirafan.reset_crash_detection()
Expand Down

0 comments on commit 91dc3aa

Please sign in to comment.