We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152cdf6 commit 60ddc91Copy full SHA for 60ddc91
1 file changed
src/char/BaseChar.py
@@ -72,14 +72,15 @@ def send_combat_key_with_ctrl(self, after_sleep=0):
72
self.task.send_key_down("CONTROL")
73
74
# 2. 稍微等待,确保系统/游戏识别到 Ctrl 已按住 (防止判定为单独按 E)
75
- time.sleep(0.05)
+ # 不设置check_combat=False,会报错sleep check not in combat
76
+ self.sleep(0.05, check_combat=False)
77
78
# 3. 发送战技 (按 E)
79
# 直接调用现有的 send_combat_key 方法
80
self.send_combat_key()
81
82
# 4. 稍微等待,防止释放过快
83
84
85
# 5. 释放 Ctrl - 使用 ok 框架支持的 "CONTROL" 键名
86
self.task.send_key_up("CONTROL")
0 commit comments