Skip to content

Commit

Permalink
Patch for not clicking in game
Browse files Browse the repository at this point in the history
  • Loading branch information
skasero committed Feb 2, 2021
1 parent de61bf3 commit 3f7010b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def runner(self, iterations = 3):
gameStartImage = self.imagePath + 'start.png'
playAgainImage = self.imagePath + 'play_again.png'
cancelQueueImage = self.imagePath + 'cancel_queue.png'
location = [] # empty array

for i in range(iterations):
print(f'Iteration: {i+1} / {iterations}')
Expand Down Expand Up @@ -93,6 +94,7 @@ def runner(self, iterations = 3):
## Used to get in_game scale
self.setScale(gameStartImage,1)
## Also this part of the code will not reach unless setScale() passes and find the image in-game
location = self.findImage(gameStartImage,self.ingame_scale)
gameStarted = True
break
except:
Expand Down

0 comments on commit 3f7010b

Please sign in to comment.