diff --git a/src/char/BaseChar.py b/src/char/BaseChar.py index 6228ce7..a93b49d 100644 --- a/src/char/BaseChar.py +++ b/src/char/BaseChar.py @@ -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 @@ -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 @@ -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: