if UnitName("focus") and ((BeeRange("focus")<=30 and BeeRange("focus")>=10) or not BeeUnitIsFollow()) then
FollowUnit("focus");
return
end
--自动攻击焦点目标
if BeeRange(focus) < 30 and focuscombat and not attacking then
if UnitExists("focustarget") then
RunMacroText("/target focustarget\n/attack")
end
end
BeeRun("/console Sound_EnableSFX 1 ") --至此开启技能提示音
--下面是小号牧师跟随大号辅助攻击的代码 请大佬斧正
--治疗焦点目标
--给大号战士上buff
if UnitExists("focus")==1 and BeeRange("focus")<=40 and not UnitIsDeadOrGhost("focus") and BeeUnitBuff("真言术:韧","focus")<=1 and BeeIsRun("真言术:韧","focus")
then BeeRun("真言术:韧","focus");
return;
end
--给自己上buff
if BeePlayerBuffTime("真言术:韧")<0 then
BeeRun("/cast 真言术:韧","Player");
return;
end
--给大号加血
if UnitExists("focus")==1 and BeeRange("focus")<=40 and not UnitIsDeadOrGhost("focus") and BeeUnitBuff("次级治疗术","focus")<1 and BeeUnitHealth("focus","%")<=85 and BeeIsRun("次级治疗术","focus")
then BeeRun("次级治疗术","focus");
return;
end
--给自己加血
if BeeUnitHealth("player","%")<=85 and BeeIsRun("次级治疗术","focus") and not BeeUnitCastSpellName("player")
then BeeRun("次级治疗术","Player");
return;
end
--辅助大号打怪
if BeeUnitUnitIsPlayer(0) and BeeUnitMana("player","%")>40 and BeeSpellCoolDown("惩击")==0 and BeeIsRun("/cast 惩击") then