Skip to content

Commit

Permalink
fix click hp potion when teleporting
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 12, 2024
1 parent 58abb6e commit 0874e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task/FarmWorldBossTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def teleport(self, boss_name):
# self.click_relative(self.crownless_pos[0], self.crownless_pos[1])
# self.wait_click_feature('gray_teleport', raise_if_not_found=True, use_gray_scale=True)
self.wait_feature('gray_teleport', raise_if_not_found=True, use_gray_scale=True, time_out=120,
pre_action=lambda: self.click_box(proceeds[index], relative_x=-1))
pre_action=lambda: self.click_box(proceeds[index], relative_x=-1) and self.sleep(1.5))
self.sleep(1)
self.wait_click_feature('custom_teleport', box=self.box_of_screen(0.48, 0.45, 0.54, 0.58),
raise_if_not_found=True, threshold=0.8, time_out=2)
Expand Down

0 comments on commit 0874e40

Please sign in to comment.