Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
554 B
2
Indexable
Never
hooksecurefunc("TargetFrame_UpdateBuffAnchor", function(self, name, index)
    if self ~= TargetFrame and self ~= FocusFrame then return end 
    local buffs = self.Buff
    local buff = buffs[index]
    buff:SetSize(24, 24)
    local tomod = index > 9 and 6 or 4
    if index > 1 then
        if mod(index-1, tomod) == 0 then
            local relative = index==13 and buffs[index-(tomod+2)] or buffs[index-tomod]
            buff:ClearAllPoints()
            buff:SetPoint("TOPLEFT", relative, "BOTTOMLEFT", 0, -2)
        end
    end
end)