From caae04876fe4cfc5a2afa6b9a59f019234c3b2cf Mon Sep 17 00:00:00 2001 From: Simpy Date: Mon, 27 Jan 2025 05:21:57 -0500 Subject: [PATCH] we need to make sure the fastest one is used if possible, this requires fully scanning the auras --- ElvUI_Libraries/Core/oUF/elements/castbar.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ElvUI_Libraries/Core/oUF/elements/castbar.lua b/ElvUI_Libraries/Core/oUF/elements/castbar.lua index 74be9eb636..45ba6b4df0 100644 --- a/ElvUI_Libraries/Core/oUF/elements/castbar.lua +++ b/ElvUI_Libraries/Core/oUF/elements/castbar.lua @@ -137,17 +137,21 @@ end local function SpecialActive(unit, filter) if not next(specialAuras) then return end - local index = 1 + local index, speed = 1 local name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter) while name do - local speedMod = specialAuras[spellID] - if speedMod then - return speedMod + + if speed == 0.6 then + return speed -- fastest speed + else + speed = specialAuras[spellID] end index = index + 1 name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter) end + + return speed end -- end block