WoWInterface - View Single Post - New AuraUtil Functions
View Single Post
07-09-18, 03:00 AM   #3
A Deviate Faerie Dragon
Cogwerkz's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 12
Originally Posted by yoshimo View Post
Mhmm why always rely on the name of an aura instead of a more unique , non localised spellid?
Well it seems to me like the whole purpose of this little file IS to find an aura by name. The rest are just functions that iterate over the currently active auras until they either find it or don't. While if we're looking for an aura by it's spellID, all we have to do is a normal iteration over the active auras and directly compare the values.

I'm not sure why they have added this, no part of the UI uses it yet. But it could be useful if an aura have several versions but the same name, and all we want to know if it's there at all. I wouldn't do it this way, though. Localized strings are just such a bad, bad way to do anything when actual spellIDs exist! The easy way out always comes with its own problems.
  Reply With Quote