View Single Post
12-30-14, 06:10 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No, and I'm not even sure how that would work... each UnitAura call is a discrete, stateless action. If you say "tell me about the 5th aura on the player unit" how can that refer to both the 5th buff and the 5th debuff? The API isn't aware that you're calling UnitAura from inside a loop, or a function, or even a file. All it knows is that (a) the function is being called and (b) the string "unit" and the number 5 are being provided with the function call. Since it can only return information about one aura, "the 5th aura" can only mean "the 5th buff" or "the 5th debuff" -- not both at the same time.
__________________
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