求助LR自动切换守护的写法
if not BeeUnitAffectingCombat() and not BeeStringFind("豹群守护",buff) thenBeeRun("/cast 豹群守护") return
end
ifBeeUnitAffectingCombat() and not BeeStringFind("灵猴守护",buff) then
BeeRun("/cast 灵猴守护")return
end
如题,想猎人脱战之后自动切换豹群守护方便跑路,进战斗自动切换灵猴守护,但是我写的,猎人就一直释放豹群守护,进战斗了也是如此,请问哪儿写错了啊? 进入战斗切换龙鹰守护
蓝量小于10%的时候自动切换蝰蛇守护
脱离战斗,蓝量满的时候自动切换猎豹守护
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 你是不是少了
local buff = BeeUnitBuffList("player")
页:
[1]