mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
优化进战斗检测
添加开始/暂停快捷键F9
This commit is contained in:
parent
6a67dba424
commit
d02398a657
@ -167,9 +167,6 @@ class CombatCheck:
|
||||
in_combat = self.in_team()[0] and self.check_health_bar()
|
||||
if in_combat:
|
||||
self.target_enemy(wait=False)
|
||||
else:
|
||||
in_combat = self.target_enemy()
|
||||
if in_combat:
|
||||
if self.boss_lv_template is None:
|
||||
self.find_boss_lv_text()
|
||||
logger.info(
|
||||
|
@ -69,7 +69,8 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
|
||||
raise e
|
||||
except NotInCombatException as e:
|
||||
logger.info(f'combat_once out of combat break {e}')
|
||||
self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}')
|
||||
if self.debug:
|
||||
self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}')
|
||||
break
|
||||
self.wait_in_team_and_world(time_out=10)
|
||||
self.sleep(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user