自动检测自己的BUFF中是不是有 战斗怒吼.没有就施放.有则普通攻击.
版本:1.12
宏命令分类:战士
宏命令代码:/script for i=1,20,1 do if (UnitBuff("player",i) ~= nil) then if (string.find(UnitBuff("player",i),"BattleShout") ~= nil) then CastSpellByName("攻击");break; end end if (i==20) then CastSpellByName("战斗怒吼(等级 6)"); end end
自动检测自己的BUFF中是不是有 战斗怒吼.没有就施放.有则普通攻击.
/script for i=1,20,1 do if (UnitBuff("player",i) ~= nil) then if (string.find(UnitBuff("player",i),"BattleShout") ~= nil) then CastSpellByName("攻击");break; end end if (i==20) then CastSpellByName("战斗怒吼(等级 6)"); end end
页:
[1]