mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
修复bug
This commit is contained in:
parent
122315ba1e
commit
f19df0c85a
@ -170,7 +170,7 @@ class CombatCheck:
|
||||
else:
|
||||
in_combat = self.target_enemy()
|
||||
if in_combat:
|
||||
if not self.boss_lv_template:
|
||||
if self.boss_lv_template is None:
|
||||
self.find_boss_lv_text()
|
||||
logger.info(
|
||||
f'enter combat cost {(time.time() - start):2f} boss_lv_template:{self.boss_lv_template is not None} boss_health_box:{self.boss_health_box} has_count_down:{self.has_count_down}')
|
||||
|
@ -57,8 +57,8 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
|
||||
|
||||
def combat_once(self, wait_combat_time=180, wait_before=3):
|
||||
self.wait_until(lambda: self.in_combat(), time_out=wait_combat_time, raise_if_not_found=True)
|
||||
self.sleep(wait_before)
|
||||
self.wait_until(lambda: self.in_combat(), time_out=10, raise_if_not_found=True)
|
||||
# self.sleep(wait_before)
|
||||
# self.wait_until(lambda: self.in_combat(), time_out=10, raise_if_not_found=True)
|
||||
self.load_chars()
|
||||
self.info['Combat Count'] = self.info.get('Combat Count', 0) + 1
|
||||
while self.in_combat():
|
||||
|
Loading…
x
Reference in New Issue
Block a user