local UnitName = UnitName;
-hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
+local function nameHook(frame)
+ if InCombatLockdown() then
+ table.insert(OmaRF.ooc_queue, {func = nameHook, args = {frame}});
+ return;
+ end
-- allowClassColorsForNPCs only in regular raid frames,
-- match only to them
if frame.optionTable.allowClassColorsForNPCs ~= nil then
frame.name:SetText(name);
end
end
-end);
+end
+hooksecurefunc("CompactUnitFrame_UpdateName", nameHook);