View Single Post
04-03-06, 12:12 AM   #32
Logdan
A Black Drake
Join Date: Dec 2005
Posts: 83
Originally Posted by Sarenity
Ahhh =( Is there a way to make an addon that when you click on the addon's button it will check if you have 2 spells and cast them on you if you don't? So it's not "automatic", you'll actually have to use the addon key or whatever, but it's a "meet in the middle".
Yes. You could use IsBuffActive (which is a seperate addon) to check if you have a buff or not and cast a spell. For example...

/script if (IsBuffActive("Mage Armor","player")) then CastSpellByName("Mage Armor") elseif (IsBuffActive("Another Mage Spell","player")) then CastSpellByName("Other Mage Spell");end

And press it two times when not fully buffed.
  Reply With Quote