local grouptype=""
if GetNumRaidMembers()>0 then grouptype="raid" else grouptype="party" end
local ZT,ZT1 = BeeGroupCountScript('BeeRange(unit)<=40', "not UnitIsDeadOrGhost(unit) and BeeUnitBuff('强效王者祝福',unit,2,0)<=500", grouptype)
if ZT >0 then BeeRun("强效王者祝福", ZT1) return end
这是我写的给团队自动加王者的,自行学习修改