代码如下:
[Lua] 纯文本查看 复制代码 --是否团队队伍
grouptype=""
if GetNumRaidMembers()>0 then grouptype="raid" else grouptype="party" end
--解毒
local A,B = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("驱毒术",unit)',"BeeUnitBuffInfo(unit,2,'Poison',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('驱毒术',unit,2,1)<1 ",grouptype)
if A>0 and BeeIsRun("驱毒术",B) then BeeRun("驱毒术",B);return;end
--解诅咒
local C,D = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("解除诅咒",unit)',"BeeUnitBuffInfo(unit,2,'Curse',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('解除诅咒',unit,2,1)<1 ",grouptype)
if C>0 and BeeIsRun("解除诅咒",D) then BeeRun("解除诅咒",D);return;end |