[color=rgba(0, 0, 0, 0.9)]这是惩戒骑先使用复仇圣印保持当前目标复仇圣印的5buff层,然后使用命令圣印,在当前目标复仇圣印BUFF时间不足2秒时自动切回复仇圣印,当前目标复仇圣印保buff5层自动切回命令圣印的脚本,哪里错了有有大神帮忙改下吗?
[Lua] 纯文本查看 复制代码 local isCombat = BeeIsCombat()
if not isCombat then return end
local vengeanceStacks = BeeTargetDeBuffCount("复仇圣印") or 0 -- 获取目标Debuff层数
local vengeanceTime = BeeTargetDeBuffTime("复仇圣印") or 0 -- 获取目标Debuff剩余时间
local currentSeal = BeePlayerBuffTime("复仇圣印") and 1 or
(BeePlayerBuffTime("命令圣印") and 2 or 0)
if currentSeal == 2 then -- 当前使用命令圣印
if vengeanceStacks <5 and vengeanceTime <2 then
if BeeIsRun("复仇圣印") then
BeeRun("复仇圣印")
end
end
elseif currentSeal == 1 then -- 当前使用复仇圣印
if vengeanceStacks >=5 and vengeanceTime >5 then
if BeeIsRun("命令圣印") then
BeeRun("命令圣印")
end
end
else -- 无圣印时默认开启复仇
if BeeIsRun("复仇圣印") then
BeeRun("复仇圣印")
end
end
if vengeanceStacks >=4 and vengeanceTime <3 and currentSeal ~=1 then
if BeeIsRun("复仇圣印") then
BeeRun("复仇圣印")
end
end
|