Hi, I seem to be getting some strange results out of GetSpellInfo, and wondering if I can get some help.
I'm working on an Enhancement Shaman module for clcInfo, and I'm trying to get the cast time for the Lightning Bolt spell. Eventually I need this to take into account Maelstrom Weapon stacks and Haste, but the numbers I'm getting out of GetSpellInfo don't really seem to make sense regardless of that.
I have the following code spitting values out the clcInfo debug window:
Lua Code:
local name, _, _, cost, _, _, casttime = GetSpellInfo(403)
debug:AddBoth("lb info", name .. " " .. cost .. " " .. casttime)
This results in: Lightning Bolt 2081 403
From the tooltip on Lightning Bolt on my bars, it actually costs 259 mana and takes 2.08 seconds to cast.
I only just noticed the value I'm getting for "casttime" suspiciously matches the spell id. Ooh, and 2081 would actually be about right for the cast time in ms...
Anyone know what's going on here? Has the template for GetSpellInfo changed and the websites haven't been updated to the new function?
Cheers for any help!
Dave