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-07-25 22:06:39 +08:00
parent 4a4c0c5258
commit 560c484622

View File

@ -222,8 +222,7 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
else:
logger.warning(f"can't find the f to enter")
return False
if target_text:
return f_found
remaining = time.time() - start
if self.handle_claim_button():
@ -257,8 +256,6 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
target_text=target_text) and self.sleep(0.5)
else:
self.send_key('f')
if target_text:
return True
if self.handle_claim_button():
return False
self.sleep(0.5)