lanevegame
Authorized
- Joined
- Jun 18, 2015
Here is a macro to cast a certain buff rank based on the target level:
You can use this macro for every buff you want, just replace the name of the spell and the number of ranks available in your spell book.
Code:
/script Pre="[COLOR=#40e0d0]Blessing of Wisdom[/COLOR](Rank " Sp={1,2,14,26,38,50} if (UnitLevel('target') ~= nil and UnitIsFriend('player','target')) then for i=[COLOR=#ee82ee]5[/COLOR],1,-1 do if (UnitLevel('target') >= Sp[i]) then CastSpellByName(Pre..i..")") return end end end
You can use this macro for every buff you want, just replace the name of the spell and the number of ranks available in your spell book.