mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-07 09:25:34 +00:00
fix out of combat when casting liberation
This commit is contained in:
parent
af1c8f4067
commit
d314177108
@ -245,7 +245,7 @@ class BaseChar:
|
|||||||
if con_less_than > 0:
|
if con_less_than > 0:
|
||||||
if self.get_current_con() > con_less_than:
|
if self.get_current_con() > con_less_than:
|
||||||
return False
|
return False
|
||||||
|
self.task.in_liberation = True
|
||||||
self.logger.debug(f'click_liberation start')
|
self.logger.debug(f'click_liberation start')
|
||||||
start = time.time()
|
start = time.time()
|
||||||
last_click = start
|
last_click = start
|
||||||
@ -257,7 +257,6 @@ class BaseChar:
|
|||||||
break
|
break
|
||||||
self.logger.debug(f'click_liberation liberation_available click')
|
self.logger.debug(f'click_liberation liberation_available click')
|
||||||
now = time.time()
|
now = time.time()
|
||||||
self.task.in_liberation = True
|
|
||||||
if now - last_click > 0.1:
|
if now - last_click > 0.1:
|
||||||
self.task.send_key(self.get_liberation_key())
|
self.task.send_key(self.get_liberation_key())
|
||||||
self.liberation_available_mark = False
|
self.liberation_available_mark = False
|
||||||
@ -267,7 +266,6 @@ class BaseChar:
|
|||||||
self.task.next_frame()
|
self.task.next_frame()
|
||||||
while not self.task.in_team()[0]:
|
while not self.task.in_team()[0]:
|
||||||
clicked = True
|
clicked = True
|
||||||
self.task.in_liberation = True
|
|
||||||
if send_click:
|
if send_click:
|
||||||
self.task.click(interval=0.1)
|
self.task.click(interval=0.1)
|
||||||
if time.time() - start > 7:
|
if time.time() - start > 7:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user