Hi all
I am adapting one of my current addons to Classic.
I have a button that I can drop an item or spell onto.
If the object is an item I just do a simple print.
If the object is a spell I get the spellID and then I get the spellLink and then do a print.
Here is my chunk;
Lua Code:
if CursorHasItem() then
print("Has Item")
elseif CursorHasSpell() then
print("Has Spell")
cursorType, _, _, spellID = GetCursorInfo()
spellLink = GetSpellLink(spellID)
print("SpellID:", spellID, " - SpellLink:", spellLink)
else
print("???")
end
When I drop class spells and racial spell onto my button I get the following output.
In retail, I get the correct spellLink print, yet in Classic I only get the spellName.
How do I get the spellLink in Classic?