Skip to content

Commit

Permalink
fix out of combat when casting liberation
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 8, 2024
1 parent af1c8f4 commit d314177
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/char/BaseChar.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def click_liberation(self, wait_end=True, con_less_than=-1, send_click=False):
if con_less_than > 0:
if self.get_current_con() > con_less_than:
return False

self.task.in_liberation = True
self.logger.debug(f'click_liberation start')
start = time.time()
last_click = start
Expand All @@ -257,7 +257,6 @@ def click_liberation(self, wait_end=True, con_less_than=-1, send_click=False):
break
self.logger.debug(f'click_liberation liberation_available click')
now = time.time()
self.task.in_liberation = True
if now - last_click > 0.1:
self.task.send_key(self.get_liberation_key())
self.liberation_available_mark = False
Expand All @@ -267,7 +266,6 @@ def click_liberation(self, wait_end=True, con_less_than=-1, send_click=False):
self.task.next_frame()
while not self.task.in_team()[0]:
clicked = True
self.task.in_liberation = True
if send_click:
self.task.click(interval=0.1)
if time.time() - start > 7:
Expand Down

0 comments on commit d314177

Please sign in to comment.