View Single Post
05/12/22, 04:28 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Edit the file /Core/EventViewers/_base.lua with a text editor
Add this line at line 173
if not color then return end

The function CombatCloud_EventViewer:PrepareLabel looks like this in the end
Lua Code:
  1. function CombatCloud_EventViewer:PrepareLabel(label, fontSize, color, text)
  2.     label:SetText(text)
  3.     if not color then return end
  4.     label:SetColor(unpack(color))
  5.     label:SetFont(format('%s|%d|%s', self.LMP:Fetch('font', CombatCloudSettings.fontFace), fontSize, CombatCloudSettings.fontOutline))
  6. end

Hope it fixes the spam, as the unpack function says it cannot use the table "color" properly as it is nil. So adding a check before should abort before the error occurs.
  Reply With Quote