mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-07 09:25:34 +00:00
修复自动战斗bug
This commit is contained in:
parent
4b7b969ba8
commit
ae422b9cb0
@ -131,10 +131,10 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
|
||||
max_priority = priority
|
||||
switch_to = char
|
||||
if switch_to == current_char:
|
||||
logger.warning(f"can't find next char to switch to, maybe switching too fast click and wait")
|
||||
if time.time() - current_char.last_perform < 0.1:
|
||||
current_char.continues_normal_attack(0.2)
|
||||
logger.warning(f"can't find next char to switch to, performing too fast add a normal attack")
|
||||
# logger.warning(f"can't find next char to switch to, maybe switching too fast click and wait")
|
||||
# if time.time() - current_char.last_perform < 0.1:
|
||||
current_char.continues_normal_attack(0.2)
|
||||
logger.warning(f"can't find next char to switch to, performing too fast add a normal attack")
|
||||
return self.switch_next_char(current_char, post_action=post_action, free_intro=free_intro,
|
||||
target_low_con=target_low_con)
|
||||
switch_to.has_intro = has_intro
|
||||
|
Loading…
x
Reference in New Issue
Block a user