进入战斗切换龙鹰守护
蓝量小于10%的时候自动切换蝰蛇守护
脱离战斗,蓝量满的时候自动切换猎豹守护
[Lua] 纯文本查看 复制代码 local buff = BeeUnitBuffList("player")
if not BeeUnitAffectingCombat() and BeeUnitMana("player","%")==100 and GetUnitSpeed("player")>0 and not BeeStringFind("猎豹守护",buff) and not BeeStringFind("猎豹守护",buff) then
BeeRun("/cast 猎豹守护")
end
if (not BeeStringFind("蝰蛇守护",buff) and BeeUnitMana("player","%")<10) or (not BeeStringFind("蝰蛇守护",buff) and not BeeUnitAffectingCombat()) and not BeeStringFind("猎豹守护",buff) then
BeeRun("/cast 蝰蛇守护")
return;
end
if BeeUnitAffectingCombat() and not BeeStringFind("龙鹰守护",buff) and BeeUnitMana("player","%")>90 then
BeeRun("/cast 龙鹰守护")
return;
end |