As I said, you're welcome.
Originally Posted by Motig
#showtooltip
/cast Shield Wall
/script if select(2, GetSpellCooldown('Shield Wall')) == 0 then SendChatMessage("Shield Wall: -60%dmg 12 sec", 'SAY'); end
Edit:
Awww beaten to it!
|
Your code is actually better (shorter), but you need to execute the script before the /cast or else it will never evaluate to "true". Because after the /cast it always is on cooldown
Further, specifying the channel and ending a line with the semicolon just eats up macro space and is not necessary.
Conclusion:
Code:
#showtooltip
/script if select(2, GetSpellCooldown('Shield Wall')) == 0 then SendChatMessage("Shield Wall: -60%dmg 12 sec") end
/cast Shield Wall
Warning, haven't tested this last iteration.