Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit 8eb8a49

Browse files
committed
Improving arena stability #31
1 parent ec6404f commit 8eb8a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def handleArenaOfHeroes(count):
288288
wait(1) # To avoid error when clickMultipleChoice returns no results
289289
selectArenaOpponent(choice=4)
290290
# clickMultipleChoice('buttons/arenafight', count=4, confidence=0.98, region=boundries['attackAoH'], seconds=3) # Select 4th opponent
291-
if isVisible('buttons/heroclassselect', retry=3, region=boundries['heroclassselect']): # This is rather than Battle button as that is animated and hard to read
291+
while isVisible('buttons/heroclassselect', retry=3, region=boundries['heroclassselect']): # This is rather than Battle button as that is animated and hard to read
292292
clickXY(550, 1800, seconds=3)
293293
click('buttons/skip', retry=5, confidence=0.8, suppress=True, region=boundries['skipAoH']) # Retries as ulting heros can cover the button
294294
if returnBattleResults(type='arena'):

0 commit comments

Comments
 (0)