Buff & Debuff Size Script

Not sure why this apparently isn’t working as intended (I haven’t actually tested it). Buffs apparently get resized but not the debuffs.

hooksecurefunc("CompactUnitFrame_UpdateAll",function(f)
	if f.buffFrames then
		for _,d in ipairs(f.buffFrames) do
			d:SetSize(30,30)
		end
	elseif f.debuffFrames then
		for _,d in ipairs(f.debuffFrames) do
			d:SetSize(30,30)
		end
	end
end)
if f.buffFrames then
    -- ...
elseif f.debuffFrames then

If you have Buffs, it won’t do Debuffs.

if f.buffFrames then
    -- ...
end
if f.debuffFrames then
    -- ...
end
1 Like

I dont understand why it doesnt work for debuffs

Two possabilities.

  1. Not hooking the right function and something is resetting the size after their code.
  2. The debuffs they’re looking for are in the f.dispelDebuffFrames table
	if f.dispelDebuffFrames then
		for _,d in ipairs(f.dispelDebuffFrames) do
			d:SetSize(30,30)
		end
	end
1 Like