Thread: .visibleAuras
View Single Post
07-23-10, 07:58 AM   #1
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
.visibleAuras

From what I can gather from ouF aura.lua, .visibleAuras gives me the current number of Auras (Buffs + Debuffs) visible, is that right?

I'm trying to get its value on my custom PostUpdateIcon function, but everytime I call it, it returns an error.

For example this in my PostUpdateIcon

Code:
i = Auras.visibleAuras
local i=i+i
Returns this error:

Interface\AddOns\oUF_lumen\oUF_lumen.lua:630: attempt to perform arithmetic on local 'i' (a nil value)

Am I getting it wrong? Shouldn't it return an arithmetic value? I think .visibleAuras is a global on oUF right? So I don't need to declare it. I've search for other ouF authors layouts but rarely anyone makes use of this.

Thanks!
__________________
My oUF Layout: oUF Lumen
  Reply With Quote