if GetNumRaidMembers()>0
then grouptype="raid"
else grouptype="party"
end
local RaidDX = BeeGroupMinScript('BeeRange(unit)<=40 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if BeeRange(RaidDX)<=40 and BeeUnitBuff("坚韧祷言",RaidDX,2,1)<30
then
BeeRun("坚韧祷言")
return
end