Skip to content

Commit

Permalink
messed this part up
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 25, 2024
1 parent 946462a commit 3dc2652
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -664,25 +664,20 @@ function UF:AuraFilter(unit, button, name, icon, count, debuffType, duration, ex
end

local noDuration, allowDuration = UF:AuraDuration(db, duration)
if not self.filterList then
if not allowDuration or not self.filterList then
button.filterPass = nil
button.priority = 0

return allowDuration -- Allow all auras to be shown when the filter list is empty, while obeying duration sliders
elseif allowDuration then
if button.filterPass and UF:AuraUnchanged(button.auraInfo, name, icon, count, debuffType, duration, expiration, source, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, castByPlayer, nameplateShowAll) then
return button.filterPass
else
local myPet, otherPet, canDispel, isFriend, unitIsCaster = UF:AuraPopulate(db, unit, button, name, icon, count, debuffType, duration, expiration, source, isStealable, spellID)
local pass, priority = UF:CheckFilter(source, name, spellID, canDispel, isFriend, button.isPlayer, unitIsCaster, myPet, otherPet, isBossDebuff, noDuration, castByPlayer, nameplateShowAll or (nameplateShowPersonal and (button.isPlayer or myPet)), E.MountIDs[spellID], self.filterList)
elseif UF:AuraUnchanged(button.auraInfo, name, icon, count, debuffType, duration, expiration, source, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, castByPlayer, nameplateShowAll) then
return button.filterPass
else
local myPet, otherPet, canDispel, isFriend, unitIsCaster = UF:AuraPopulate(db, unit, button, name, icon, count, debuffType, duration, expiration, source, isStealable, spellID)
local pass, priority = UF:CheckFilter(source, name, spellID, canDispel, isFriend, button.isPlayer, unitIsCaster, myPet, otherPet, isBossDebuff, noDuration, castByPlayer, nameplateShowAll or (nameplateShowPersonal and (button.isPlayer or myPet)), E.MountIDs[spellID], self.filterList)

button.filterPass = pass
button.priority = priority or 0 -- this is the only difference from auarbars code
button.filterPass = pass
button.priority = priority or 0 -- This is the only difference from auarbars code

return pass
end
else
button.filterPass = nil
button.priority = 0
return pass
end
end

0 comments on commit 3dc2652

Please sign in to comment.