The function
OnTooltipSetSpell is fired on spell and talent tooltip.
How to recognize if it is
spell or
talent?
Lua Code:
GameTooltip:HookScript("OnTooltipSetSpell", function(self)
local spellName, spellID = self:GetSpell();
----- this work both on spell and talent tooltip
end
);