|
脚本原来是可以用的,现在启动不了,会报错。有大神能看看吗?
报错信息:
Interface\AddOns\WBE\Class\zhCN\SHAMAN\SHAMAN.lua:163: Usage: UnitAura("unit", [index] or ["name", "rank"][, "filter"])
脚本:
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
local Zdzt = BeeUnitAffectingCombat() or BeeUnitAffectingCombat("focus")
local grouptype=""
if GetNumRaidMembers()>0 then
grouptype="raid"
else
grouptype="party"
end
local Jl = BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<95 and BeeUnitBuff("激流",unit)<=0 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit,'%')",grouptype)
if Jl and BeeSpellCD("激流")==0 and BeeIsRun("激流",Jl) then
BeeRun("激流",Jl) end
local Sl,JJZll = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("治疗链",unit)',"BeeUnitHealth(unit,'%')<65 and not UnitIsDeadOrGhost(unit)",grouptype)
if Sl>0 then
if Sl>=4 and Zdzt then
if BeeSpellCD("潮汐之力")==0 then BeeRun("潮汐之力") end
if BeeIsRun("治疗链",JJZll) then
BeeRun("治疗链",JJZll)
end
end
if Sl<=2 and BeeStringFind("波涛汹涌",buff) then
if BeeIsRun("治疗波",JJZll) then
BeeRun("治疗波",JJZll) end
end
return end
local rs,PTZll = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("治疗链",unit)',"BeeUnitHealth(unit,'%')<85 and not UnitIsDeadOrGhost(unit)",grouptype)
if rs>0 then
if rs>=4 then
if GetItemSpell(GetItemInfo(GetInventoryItemLink('player',10))) and GetInventoryItemCooldown("Player",10)==0 then BeeRun("/use 10")
end
if BeeIsRun("治疗链",PTZll) then
BeeRun("治疗链",PTZll)
end
end
if rs<=2 and BeeStringFind("波涛汹涌",buff) then
if BeeIsRun("次级治疗波",PTZll) then
BeeRun("次级治疗波",PTZll)
end
end
return end |
|