BigDebuffs

BigDebuffs

18M Downloads

Adapt + BigDebuffs don't play well together.

Natlyz opened this issue ยท 1 comments

commented

Hello!

Please make BigDebuffs work with Adapt.
Adapt: https://www.curseforge.com/wow/addons/project-2341

tst3

Currently it looks like this..

Thanks ๐Ÿ˜Š

commented

+1 to the above
I have some old code that I would add to Bigdebuffs.lua to fix this, but I haven't found the workaround for the new UI elements:

 if debuff then
        if duration < 1 then duration = 1 end -- auras like Solar Beam don't have a duration

        if frame.current ~= icon then
            if frame.blizzard then
                -- Blizzard Frame

		-- Adapt
                if frame.anchor and Adapt and Adapt.portraits[frame.anchor] then
                Adapt.portraits[frame.anchor].modelLayer:SetFrameStrata("BACKGROUND")
                end

                -- fix Obsidian Claw icon
                icon = icon == 611425 and 1508487 or icon

                SetPortraitToTexture(frame.icon, icon)
            else
                frame.icon:SetTexture(icon)
            end
        end

        frame.cooldown:SetCooldown(expires - duration, duration)
        frame:Show()
        frame.cooldown:SetSwipeColor(0, 0, 0, 0.6)

        -- set for tooltips
        frame:SetID(debuff)
        frame.buff = buff
        frame.interrupt = interrupt
        frame.current = icon
    else
	-- Adapt
         if frame.anchor and frame.blizzard and Adapt and Adapt.portraits[frame.anchor] then
         Adapt.portraits[frame.anchor].modelLayer:SetFrameStrata("LOW")
         end
        frame:Hide()
        frame.current = nil
    end