print(AddOn.."Sorry, you can't change the button in combat.") |
return |
end |
local actiontype,itemID = GetCursorInfo() |
local actiontype,itemID,actiontype2,spellID = GetCursorInfo() |
if actiontype == "spell" or "item" then |
VoodooDB[GetActiveTalentGroup()]["actiontype"] = actiontype |
if actiontype == "spell" then |
VoodooDB[GetActiveTalentGroup()]["spell"] = select(1,GetSpellName(itemID,actiontype)) |
VoodooDB[GetActiveTalentGroup()]["spell"] = GetSpellInfo(spellID) |
VoodooDB[GetActiveTalentGroup()]["texture"] = GetSpellTexture(VoodooDB[GetActiveTalentGroup()]["spell"]) |
elseif actiontype == "item" then |
VoodooDB[GetActiveTalentGroup()]["spell"] = select(1,GetItemInfo(itemID)) |