Skip to content

Commit

Permalink
Update arena.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Feb 5, 2024
1 parent e9f5c30 commit ce1731c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/arena.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def choose_enemy(self):
self_lv = self.ocr.get_region_num(self.latest_img_array, self_level_region[self.server])
self.logger.info("self level " + str(self_lv))
refresh = 0
while True:
while self.flag_run:
if refresh >= max_refresh:
break
opponent_lv = self.ocr.get_region_num(self.latest_img_array, opponent_level_region[self.server])
Expand Down

0 comments on commit ce1731c

Please sign in to comment.