mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Fix: backported handling of oUF_RaidDebuffs plugin and BuffIndicator module to adhere to 1.12 API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user