Quantcast
WoWInterface - View Single Post - GameTooltip:GetSpell()
View Single Post
01-28-21, 03:07 PM   #1
Platine
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 36
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