-
Posted by intruder22 on Mon, 17 Dec 2012 00:46:13
How can I get proper message about duration of my spell?
I've tried: Lua code:
local button = CreateFrame("Button", "MyCastButton", handler, "SecureActionButtonTemplate") local start, duration, enabled = GetSpellCooldown("Battle shout"); SecureHandlerWrapScript(button, "OnClick", handler, [[message("Duration to next Battle shout is " ..duration.. " sec")]] )
My macro:
/click MyCastButton
Not working please help! I'm new in Lua.
-
Posted by jnwhiteh on Mon, 17 Dec 2012 08:00:44
You'd probably need to use PostClick, as the spell won't yet be triggered in the OnClick (I think).