View Single Post
11-22-12, 12:51 PM   #8
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
Thanks, im getting somewhere thanks to all your great help!

It is kind of working now but i am unfortunately getting errors when trying lfr, haven't had time
to test it more... but i've had a full lfr with no error aswell.

Mostly i can say that when entering Gara'jals spiritrealm i always got errors.

This is how i added it

Lua Code:
  1. local show = CustomFilter(auras, unit, icon, name, rank, texture, count, dtype, duration, expires, caster, spellID)
  2.         if(show) and icon.buff then
  3.         local _, class = UnitClass(caster)
  4.         if class then
  5.             local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
  6.             if color then
  7.                 icon.border:SetBackdropBorderColor(color.r, color.g, color.b,1)
  8.             end
  9.         end

The error is pointing at

Lua Code:
  1. local _, class = UnitClass(caster)

and also this part in oUF\events.lua

Lua Code:
  1. eventFrame:SetScript('OnEvent', function(_, event, arg1, ...)
  2.         local listeners = registry[event]
  3.         if arg1 and not sharedUnitEvents[event] then
  4.             local frames = framesForUnit[arg1]
  5.             if frames then
  6.                 for frame in next, frames do
  7.                     if listeners[frame] and frame:IsVisible() then
  8.                         frame[event](frame, event, arg1, ...)
  9.                     end
  10.                 end
  11.             end
  12.         else
  13.             for frame in next, listeners do
  14.                 if frame:IsVisible() then
  15.                     frame[event](frame, event, arg1, ...)
  16.                 end
  17.             end
  18.         end
  19.     end)

Any hints on what the cause might be, because that error doesn't tell me that much im afraid
  Reply With Quote