Tried this:
- Code: Select all
/script Pre="Arcane Intellect(Rank " Sp={1,2,14,26,38,50} if (UnitLevel("target") ~= nil and UnitIsFriend("player","target")) then for i=6,1,-1 do if (UnitLevel("target") >= Sp[i]) then CastSpellByName(Pre..i..") ") return end end end
but it cant buff target lvl 30(says too low lvl) and 60(says nothing, just dont works), and works propperly with all other lvls.