mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-07 01:15:18 +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()
|
in_combat = self.in_team()[0] and self.check_health_bar()
|
||||||
if in_combat:
|
if in_combat:
|
||||||
self.target_enemy(wait=False)
|
self.target_enemy(wait=False)
|
||||||
else:
|
|
||||||
in_combat = self.target_enemy()
|
|
||||||
if in_combat:
|
|
||||||
if self.boss_lv_template is None:
|
if self.boss_lv_template is None:
|
||||||
self.find_boss_lv_text()
|
self.find_boss_lv_text()
|
||||||
logger.info(
|
logger.info(
|
||||||
|
@ -69,6 +69,7 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
|
|||||||
raise e
|
raise e
|
||||||
except NotInCombatException as e:
|
except NotInCombatException as e:
|
||||||
logger.info(f'combat_once out of combat break {e}')
|
logger.info(f'combat_once out of combat break {e}')
|
||||||
|
if self.debug:
|
||||||
self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}')
|
self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}')
|
||||||
break
|
break
|
||||||
self.wait_in_team_and_world(time_out=10)
|
self.wait_in_team_and_world(time_out=10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user