mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-04-24 08:25:16 +00:00
修复大世界4c无法自动复活
修复自动战斗可能报错
This commit is contained in:
parent
bd186d1fb0
commit
048ee3b519
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -115,8 +115,3 @@ jobs:
|
||||
- name: push to cnb
|
||||
run: |
|
||||
python -m ok.update.push_repos --repos https://cnb:${{ secrets.CNB_TOKEN }}@cnb.cool/ok-oldking/ok-wuthering-waves.git --files deploy.txt --tag ${{ steps.tagName.outputs.tag }}
|
||||
|
||||
- name: push to coding
|
||||
run: |
|
||||
python -m ok.update.push_repos --repos https://${{ secrets.CODING_USERNAME }}:${{ secrets.CODING_PASSWORD }}@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git --files deploy.txt --tag ${{ steps.tagName.outputs.tag }}
|
||||
|
||||
|
@ -66,7 +66,7 @@ def get_char_by_pos(task, box, index, old_char):
|
||||
info = None
|
||||
name = "unknown"
|
||||
char = None
|
||||
if old_char:
|
||||
if old_char and old_char.name in char_names:
|
||||
char = task.find_one(old_char.char_name, box=box, threshold=0.6)
|
||||
if char:
|
||||
return old_char
|
||||
|
@ -63,9 +63,9 @@ class BaseCombatTask(CombatCheck):
|
||||
logger.info(f'send_key_and_wait_animation timed out {key}')
|
||||
|
||||
def teleport_to_heal(self):
|
||||
self.sleep(1)
|
||||
self.info['Death Count'] = self.info.get('Death Count', 0) + 1
|
||||
self.send_key('esc', after_sleep=2)
|
||||
self.sleep(2)
|
||||
self.log_info('click m to open the map')
|
||||
self.send_key('m', after_sleep=2)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user