On a paladin slave I have an assist macro casting assist hammer of light. Can I in the same macro check if e.g. Seal of righteousnesss is active on him? And if it's not he will cast it on himself before casting the hammer?
Printable View
On a paladin slave I have an assist macro casting assist hammer of light. Can I in the same macro check if e.g. Seal of righteousnesss is active on him? And if it's not he will cast it on himself before casting the hammer?
I do not believe you can use buffs / debuffs as a conditional.
Yes, you can. Not in combat, though. The easiest way to do it is with SmartBuff or one of the other buff monitoring addons. I know you can do it in a script, too, but I don't have a good example in front of me to post here.
[edit] HA! Found one. See if this works (only out of combat).
What I usually do is add this to my mount macro. That way it always refreshes when I mount.Code:/run if not UnitBuff("player", "Seal of Righteousness") then CastSpellByName("Seal of Righteousness") end
Sorry, if I'm stupid now but how do I use scripts like that? If-statements aren't allowed in normal macros or?
Just make a macro, and use that as the macro text.
Or press Enter, and paste it into your console.
I personally have a Buff key, which for a pally might be:
/castsequence reset=5 Seal of Vengeance,Null
And on another toon, maybe:
/castsequence reset=5 Water Shield, Flametongue Weapon,Null
And will periodically spam this, until the spell flashes stop occurring (as in everyone reaches the Null section of the sequence).
Just install smartbuff on all your characters and you'll never be unhappy again.