181758707 发表于 2023-5-4 09:16:30

用了BeeSpellCD为什么还有红字提示技能还没准备好

local bf = BeeUnitBuffList("player")
local zd = BeeUnitAffectingCombat() and BeeUnitCanAttack()
ifzd and BeeSpellCD("盲眼追猎手套")==0 and BeeIsRun("/use 10") then
    BeeRun("/use 10"); return;
end
ifzdand BeeSpellCD("胜者的召唤")==0 and BeeIsRun("/use 14") then
    BeeRun("/use 14"); return;
end
if zd andBeeSpellCD("冷血")==0 and BeeIsRun("/cast 冷血") then
    BeeRun("/cast 冷血"); return;
end
if zd and BeeSpellCD("血性狂怒")==0 and BeeIsRun("/cast 血性狂怒") then
    BeeRun("/cast 血性狂怒"); return;
end
一个简单的爆发的代码,来个大佬帮忙看下,明明用了要判断CD好了才使用,为什么实际使用中,老是有红字提示技能还没准备好

xxdxxx 发表于 2023-5-4 09:58:17

{:5_254:}{:5_254:}{:5_254:}{:5_252:}{:5_235:}{:5_255:}{:5_250:}{:5_250:}{:5_249:}{:5_164:}

181758707 发表于 2023-5-4 16:20:29

有大佬能帮忙看下吗??~?~?~

电动男朋友 发表于 2023-5-4 19:28:30

181758707 发表于 2023-5-4 04:20 PM
有大佬能帮忙看下吗??~?~?~

你print 一下BeeSpellC 这个API有没有 问题

181758707 发表于 2023-5-11 11:47:32

电动男朋友 发表于 2023-5-4 07:28 PM
你print 一下BeeSpellC 这个API有没有 问题

print是啥意思?打印?:'(

电动男朋友 发表于 2023-5-11 23:08:49

181758707 发表于 2023-5-11 11:47 AM
print是啥意思?打印?

是的    你print 一下输出的结果看看返回值 是什么 就OK了
页: [1]
查看完整版本: 用了BeeSpellCD为什么还有红字提示技能还没准备好