From 0d8da8310600314fe509fe3788faec4bcf6b791e Mon Sep 17 00:00:00 2001 From: Simpy Date: Sun, 24 Nov 2024 22:54:34 -0500 Subject: [PATCH] this too --- ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua b/ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua index c5616c929a..d999d9b0d8 100644 --- a/ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua +++ b/ElvUI/Core/Modules/UnitFrames/Elements/Auras.lua @@ -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)