Skip to content

Commit

Permalink
this too
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 25, 2024
1 parent 44d653c commit 0d8da83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ function UF:AuraDispellable(debuffType, spellID)
end

function UF:AuraDuration(db, duration)
local noDuration = (not duration or duration == 0)
return noDuration, noDuration or (duration and duration > 0 and (not db.maxDuration or db.maxDuration == 0 or duration <= db.maxDuration) and (not db.minDuration or db.minDuration == 0 or duration >= db.minDuration))
local dno, dmax, dmin = not duration or duration == 0, db.maxDuration, db.minDuration
return dno, dno or (duration and duration > 0 and (not dmax or dmax == 0 or duration <= dmax) and (not dmin or dmin == 0 or duration >= dmin))
end

function UF:AuraPopulate(db, unit, button, name, icon, count, debuffType, duration, expiration, source, isStealable, spellID)
Expand Down

0 comments on commit 0d8da83

Please sign in to comment.