macro in Addon syntax
I have nearly completed the revisions I like. But, I am still perplexed by
summonButton:SetAttribute('macrotext', '/cast '..(Locale.Spells.FastCast or "").."\n/cast "..summon)
This will try to cast "fast cast" (Fel Domination)
Then it summons the pet.
But, if FD is on CD, then it gives error sound and error text, but it still completes the pet summon. I would like to remove the error. In a macro, I use
/console Sound_EnableSFX 0
/cast
/cast
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
Could someone help me combine the two?
Rhamses
|