Skip to content

Commit

Permalink
Add macro support for spell button text and tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott committed Jan 18, 2020
1 parent d340e41 commit 4019c15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion TheoryCraftClassicEngine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,12 @@ end
function TheoryCraft_GetSpellDataByAction(action)
if action == nil then return nil end
local type, id = GetActionInfo(action);
if (type ~= "spell") then return nil end
if (type == "macro") then
id = GetMacroSpell(id)
else if (type ~= "spell") then
return nil end
end
if (id == nil) then return end
local spellData = TheoryCraft_GenerateSpellData(id);
return UpdateTarget(spellData) or spellData
end
Expand Down

0 comments on commit 4019c15

Please sign in to comment.