0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-05 08:25:28 +00:00

自动五合一

This commit is contained in:
firedcto@gmail.com 2024-08-04 22:59:48 +08:00
parent f1a1668c69
commit 30a5ff6598

View File

@ -155,8 +155,8 @@ class FiveToOneTask(BaseCombatTask):
self.log_info(f'需要加锁 {config_name} {set_name}')
self.click_relative(x, y)
self.sleep(1)
self.click(lock)
locked = self.wait_feature('echo_locked', threshold=0.9)
locked = self.wait_feature('echo_locked', threshold=0.9, pre_action=lambda: self.click(lock),
wait_until_before_delay=1.5)
if not locked:
self.log_info(f'加锁失败 {config_name} {set_name}', notify=True)
return False