View Single Post
07-17-16, 10:31 PM   #7
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Originally Posted by gwyd View Post
Does it make sense that the following always prints the additional power bar name for the spec being swapped from (not the one being swapped to) or am I doing something wrong?

Lua Code:
  1. self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", function(self)
  2.   print(ADDITIONAL_POWER_BAR_NAME)
  3. end)
Wrong. There's only one name in ADDITIONAL_POWER_BAR_NAME and it's "MANA", cuz it's a constant. If you're interested in such things, you should always check related Blizz code first.
__________________

Last edited by lightspark : 07-17-16 at 10:38 PM.
  Reply With Quote