第一个方案,自己写一个函数。下面是代码,但是需要你自己去查下那个debuff的名字是啥,然后替换:“这里是debuff的名字” 为队友身上的debuff名字。
local Members =GetNumPartyMembers()+1
for i=1, Members do
if Members == i then
unit="player"
else
unit="party" .. i;
if UnitName(unit) and BeeUnitHealth(unit,"%")<35 and not BeeUnitIsDead(unit) and BeeUnitPlayerControlled(unit)
then
if BeeSpellCoolDown("自由之手")==0 and BeeUnitBuffTime("这里是debuff的名字",unit,2,2,iconName)>0 and IsSpellInRange("自由之手",unit) == 1
then
BeeBatchRun("自由之手",unit)
end
end
end
end
第二个方案,用BeeGroupMinHealthCast这个函数。或者其他的队伍函数,都能达到这效果 |