Fix: backported handling of oUF_RaidDebuffs plugin and BuffIndicator module to adhere to 1.12 API

This commit is contained in:
Bluewhale1337
2026-07-26 10:55:35 +02:00
parent 8b5e42d4df
commit 822f2301cb
3 changed files with 9 additions and 11 deletions
@@ -109,13 +109,8 @@ end
local function onUpdate(self, elapsed)
self.elapsed = (self.elapsed or 0) + elapsed
if self.elapsed >= 0.1 then
local _, _, _, _, _, _, timeLeft = UnitDebuff(self.__owner.unit, self.index, "HARMFUL")
if timeLeft and timeLeft > 0 then
self.time:SetText(formatTime(timeLeft))
else
self:SetScript('OnUpdate', nil)
self.time:Hide()
end
self:SetScript('OnUpdate', nil)
self.time:Hide()
self.elapsed = 0
end
end
@@ -178,8 +173,9 @@ local function Update(self, event, unit)
local _stackThreshold = 0
for i = 1, 40 do
name, _, icon, count, debuffType, duration, expirationTime = UnitDebuff(unit, i, "HARMFUL")
if not (name and icon) then break end
local texture, stackCount, dType = UnitDebuff(unit, i, "HARMFUL")
name, icon, count, debuffType, duration, expirationTime = texture, texture, stackCount, dType, nil, nil
if not name then break end
if(addon.ShowDispellableDebuff and (element.showDispellableDebuff ~= false) and debuffType) then
if(addon.FilterDispellableDebuff) then
@@ -111,7 +111,8 @@ function UF:UpdateAuraWatch(frame, petOverride, db)
for i = 1, getn(buffs) do
if buffs[i].id then
local name, _, image = UnitBuff(frame.unit, buffs[i].id)
local image, count = UnitBuff(frame.unit, buffs[i].id)
local name = image
if name then
local icon
if not auras.icons[buffs[i].id] then