Quantcast
WoWInterface - View Single Post - Nui Error #1
Thread: Nui Error #1
View Single Post
04-20-13, 03:38 AM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,552
The offending piece of code in nUI/Units/nUI_UnitAura.lua seem to be the following:

Lua Code:
  1. local function AuraTooltipEnter( self )
  2.  
  3.     local owner = self.hitBox and self or self:GetParent();
  4.    
  5.     local tooltipUpdate = function( self )
  6.         if GameTooltip:IsOwned( owner ) then
  7.             if owner.aura.is_weapon then GameTooltip:SetInventoryItem( owner.unit_id, owner.aura.id );
  8.             else GameTooltip:SetUnitAura( owner.unit_id, owner.aura.id, owner.aura.filter );
  9.             end
  10.         end
  11.     end
  12.  
  13.     if owner.aura and owner.active then
  14.  
  15.         self:SetID( owner.aura.id );
  16.  
  17.         GameTooltip:SetOwner( owner );
  18.         tooltipUpdate( owner );
  19.         GameTooltip:Show();
  20.  
  21. --      self:SetScript( "OnUpdate", tooltipUpdate );
  22.  
  23.     end
  24. end

If we change the SetID line to the following it will probably stop the error going away.

Lua Code:
  1. if not InCombatLockdown() then
  2.    self:SetID( owner.aura.id );
  3. end
__________________