View Single Post
05-29-13, 02:50 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If there's a predetermined list of spells you care about (eg. you want to know when your arena opponent is casting a crowd-control spell) then you should just generate a table at runtime mapping the localized name from GetSpellInfo(id) to whatever data you actually want (spellID, true, table of data, function to run when it's seen, etc.) and refer to that table to identify the spell based on the name you got from UnitCastingInfo.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote