Skip to content

Commit

Permalink
Fix avoid_augments in pick_augment()
Browse files Browse the repository at this point in the history
Fix avoid_augments in pick_augment()
  • Loading branch information
anthony5301 authored Feb 7, 2024
2 parents 1f3aabd + 8786d6c commit cbfd8b0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions arena.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,18 @@ def pick_augment(self) -> None:
" [!] No priority or backup augment found, undefined behavior may occur for the rest of the round"
)

for potential in comps.AVOID_AUGMENTS:
for augment in augments:
for augment in augments:
found = False
for potential in comps.AVOID_AUGMENTS:
if potential in augment:
mk_functions.left_click(
screen_coords.AUGMENT_LOC[augments.index(augment)].get_coords()
)
found = True
break
else:
mk_functions.left_click(screen_coords.AUGMENT_LOC[0].get_coords())
if not found:
mk_functions.left_click(
screen_coords.AUGMENT_LOC[augments.index(augment)].get_coords()
)
return
mk_functions.left_click(screen_coords.AUGMENT_LOC[0].get_coords())

def check_health(self) -> None:
"""Checks if current health is below 30 and conditionally activates spam roll"""
Expand Down

0 comments on commit cbfd8b0

Please sign in to comment.