mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Bugfixes: Removed retail API calls, ran linting script and static analysis.
This commit is contained in:
@@ -395,21 +395,25 @@ function mod:UpdateElement_AurasByUnitID(unit)
|
||||
WipeAuraList(guid)
|
||||
|
||||
local index = 1
|
||||
local name, _, texture, count, _, duration, expirationTime, unitCaster, _, _, spellID = UnitAura(unit, index, "HARMFUL")
|
||||
local texture, count, debuffType = UnitAura(unit, index, "HARMFUL")
|
||||
local name, duration, expirationTime, unitCaster, spellID = texture, 0, 0, nil, nil
|
||||
while name do
|
||||
SetSpellDuration(spellID, duration)
|
||||
SetAuraInstance(guid, name, spellID, expirationTime, count, UnitGUID(unitCaster or ""), duration, texture, AURA_TYPE_DEBUFF)
|
||||
index = index + 1
|
||||
name , _, texture, count, _, duration, expirationTime, unitCaster, _, _, spellID = UnitAura(unit, index, "HARMFUL")
|
||||
texture, count, debuffType = UnitAura(unit, index, "HARMFUL")
|
||||
name = texture
|
||||
end
|
||||
|
||||
index = 1
|
||||
local name, _, texture, count, _, duration, expirationTime, unitCaster, _, _, spellID = UnitAura(unit, index, "HELPFUL")
|
||||
texture, count, debuffType = UnitAura(unit, index, "HELPFUL")
|
||||
name = texture
|
||||
while name do
|
||||
SetSpellDuration(spellID, duration)
|
||||
SetAuraInstance(guid, name, spellID, expirationTime, count, UnitGUID(unitCaster or ""), duration, texture, AURA_TYPE_BUFF)
|
||||
index = index + 1
|
||||
name, _, texture, count, _, duration, expirationTime, unitCaster, _, _, spellID = UnitAura(unit, index, "HELPFUL")
|
||||
texture, count, debuffType = UnitAura(unit, index, "HELPFUL")
|
||||
name = texture
|
||||
end
|
||||
|
||||
local raidIcon, name
|
||||
|
||||
@@ -561,7 +561,8 @@ function mod:OnCreated(frame)
|
||||
moveDown:SetDuration(0.1)
|
||||
moveDown:SetOffset(0, -35)
|
||||
moveDown:SetSmoothing("In")
|
||||
moveDown:SetScript("OnFinished", function(self)
|
||||
moveDown:SetScript("OnFinished", function()
|
||||
local self = this
|
||||
self:Reset()
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user