hooksecurefunc("CompactUnitFrame_SetMaxBuffs",function(f,n) if n ~= 0 then CompactUnitFrame_SetMaxBuffs(f,0) end end)
hooksecurefunc("CompactUnitFrame_SetMaxDebuffs",function(f,n) if n ~= 10 then CompactUnitFrame_SetMaxDebuffs(f,10) end end)
hooksecurefunc("CompactUnitFrame_SetMaxDispelDebuffs",function(f,n) if n ~= 10 then CompactUnitFrame_SetMaxDispelDebuffs(f,10) end end)