|
发表于 2023-8-3 11:24:30
|
显示全部楼层
--[[
圣骑士、战士、死亡骑士、潜行者、猎人"
--]]
--自动判断party还是raid
local grouptype=""
if GetNumRaidMembers()>0
then
grouptype="raid"
local dwz= BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitBuff("强效力量祝福",unit,2,1)<10 and BeeUnitBuff("力量祝福",unit,2,1)<10 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit) and (BeeUnitClassBase(unit)=="战士" or BeeUnitClassBase(unit)=="死亡骑士" or BeeUnitClassBase(unit)=="潜行者" or BeeUnitClassBase(unit)=="猎人" or BeeUnitClassBase(unit)=="圣骑士")',"BeeUnitHealth(unit)",grouptype)
if dwz and UnitExists(dwz) and BeeRange(dwz)<=40 and BeeIsRun("强效力量祝福",dwz)
then
BeeRun("强效力量祝福",dwz);
return;
end;
else
grouptype="party"
local wz= BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitBuff("强效力量祝福",unit,2,1)<10 and BeeUnitBuff("力量祝福",unit,2,1)<10 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit) and (BeeUnitClassBase(unit)=="战士" or BeeUnitClassBase(unit)=="死亡骑士" or BeeUnitClassBase(unit)=="潜行者" or BeeUnitClassBase(unit)=="猎人" or BeeUnitClassBase(unit)=="圣骑士")',"BeeUnitHealth(unit)",grouptype)
if wz and UnitExists(wz) and BeeRange(wz)<=40 and BeeIsRun("力量祝福",wz)
then
BeeRun("力量祝福",wz);
return;
end;
end;
|
|