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:
local show = CustomFilter(auras, unit, icon, name, rank, texture, count, dtype, duration, expires, caster, spellID)
if(show) and icon.buff then
local _, class = UnitClass(caster)
if class then
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
icon.border:SetBackdropBorderColor(color.r, color.g, color.b,1)
end
end
The error is pointing at
Lua Code:
local _, class = UnitClass(caster)
and also this part in oUF\events.lua
Lua Code:
eventFrame:SetScript('OnEvent', function(_, event, arg1, ...)
local listeners = registry[event]
if arg1 and not sharedUnitEvents[event] then
local frames = framesForUnit[arg1]
if frames then
for frame in next, frames do
if listeners[frame] and frame:IsVisible() then
frame[event](frame, event, arg1, ...)
end
end
end
else
for frame in next, listeners do
if frame:IsVisible() then
frame[event](frame, event, arg1, ...)
end
end
end
end)
Any hints on what the cause might be, because that error doesn't tell
me that much im afraid