LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 188|回复: 5

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

[复制链接]
发表于 2023-5-4 09:16:30 | 显示全部楼层 |阅读模式
[Lua] 纯文本查看 复制代码
local bf = BeeUnitBuffList("player")
local zd = BeeUnitAffectingCombat() and BeeUnitCanAttack()
if  zd and BeeSpellCD("盲眼追猎手套")==0 and BeeIsRun("/use 10") then
    BeeRun("/use 10"); return;
end
if  zd  and BeeSpellCD("胜者的召唤")==0 and BeeIsRun("/use 14") then
    BeeRun("/use 14"); return;
end
if zd and  BeeSpellCD("冷血")==0 and BeeIsRun("/cast 冷血") then
    BeeRun("/cast 冷血"); return;
end
if zd and BeeSpellCD("血性狂怒")==0 and BeeIsRun("/cast 血性狂怒") then
    BeeRun("/cast 血性狂怒"); return;
end

一个简单的爆发的代码,来个大佬帮忙看下,明明用了要判断CD好了才使用,为什么实际使用中,老是有红字提示技能还没准备好

回复

使用道具 举报

发表于 2023-5-4 09:58:17 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-5-4 16:20:29 | 显示全部楼层
有大佬能帮忙看下吗??~?~?~
回复 支持 反对

使用道具 举报

发表于 2023-5-4 19:28:30 | 显示全部楼层
181758707 发表于 2023-5-4 04:20 PM
有大佬能帮忙看下吗??~?~?~

你  print 一下  BeeSpellC 这个API  有没有 问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 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了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-5-2 10:20 PM , Processed in 0.053134 second(s), 23 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表