View Single Post
01-28-21, 03:07 PM   #1
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
GameTooltip:GetSpell()

The function OnTooltipSetSpell is fired on spell and talent tooltip.
How to recognize if it is spell or talent?

Lua Code:
  1. GameTooltip:HookScript("OnTooltipSetSpell", function(self)
  2.     local spellName, spellID = self:GetSpell();
  3.    ----- this work both on spell and talent tooltip
  4. end
  5. );
  Reply With Quote