|
发表于 2021-11-10 19:49:21
|
显示全部楼层
现在的解锁器很混乱,有新的有旧的,插件使用的版本也不同,有些插件内置了判定函数,有些老的插件需要自己写判定,最简单的办法就是检测对方读条秒打断,无脑打断,这样应该能够判定瞬发法术.
无脑打断的写法:
if BeeUnitCastSpellName("target")~|=false then
BeeRun("脚踢",Unit)
return
end
如果运行报错,那就试试判定技能的写法:
local a = BeeUnitCastSpellName('target')
local b = "冰枪术"
if UnitExists('target') then
local c,d = strfind(b,tostring(a))
if c and BeeIsRun("脚踢") then
BeeRun("脚踢",'target')
end
end
这俩如果都不行,那瞬发法术就不知道判断了,理论上来说瞬发法术没有读条 |
|