• 0

    posted a message on GridStatusLifebloom
    I could not find a better thread to post this in.
    Anyways a change in 3.0 broke this addon I changed one of its functions to keep mine working:

    function GridStatusLifebloom:CountHOTs(unitid)
        local maxbuffs = 40
        local currentTime = GetTime()
        if unitid then
            for i = 1, maxbuffs do
                local buffName, rank, texture, applications, debuffType, duration, expiryTime, isMine = UnitBuff(unitid,i)
                if buffName and expiryTime then            
                    local timeLeft = expiryTime-currentTime
                    if self:isLifebloom(buffName) then
                        return applications, timeLeft
                    end
                end
            end
        end
        return 0,0
    end
    Posted in: Unit Frames
  • To post a comment, please or register a new account.