Help with a script please

ive got this one to increase buff size of default blizzard raid frames:

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

this does work but i cant make it work for debuffs, any idea on how to do it?

sorry i forgot how to post code properly, if anyone knows ill edit it

Wrap it in ``` or hit the </> button in the editor.

I would assume it’s the same but with f.debuffFrames

https://github.com/Gethe/wow-ui-source/blob/live/Interface/AddOns/Blizzard_UnitFrame/Mainline/CompactUnitFrame.lua

Or you could just grab the BigDebuffs addon for both
https://www.curseforge.com/wow/addons/bigdebuffs

hey, thank you. I edited it

I do have bigdebuffs but it doesnt increase the size of debuffs in general meaning like some random dots or something.

Sadly it doesnt work if i just replace buff with debuff

This what you’re using when you try both?

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)

Yes, but this only works for buffs for some reason. Any idea on how to get this work for debuffs also?

Fizzle recommend trying

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

I appreciate your help a lot, elvenbane, but sadly this still does not work for me. I dont understand why it doesnt work for debuffs

Not sure if you saw Fizzle’s update on the NA thread.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.