Thread: nUI_Button.lua
View Single Post
06-02-09, 04:12 AM   #3
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Hmmm... that's a really odd one. The only way that error could occur is if an aura on the target didn't have anyone who cast the aura. o.O

In any event, I've added a trap for it. You can fix it yourself until I get the next patch out by editing [ Interface > AddOns > nUI > Bars > nUI_Button.lua ] and going to line 1192 where you'll see the following segment of code... add the new line (that's in blue) to the rest of the section.

Code:
if  aura.end_time
and aura.caster
and aura.end_time > proc_time
and aura.name == overlay.spellStatus.name
and aura.rank == overlay.spellStatus.rank                    
and UnitIsUnit( aura.caster, "player" )
then 
    overlay.spellStatus.remains = aura.end_time - proc_time;
    overlay.spellStatus.color   = { r=0, g=1, b=1 };
    break;
end
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/