From 809957ad409cad9d9e56de8d47e11b785c27a3c7 Mon Sep 17 00:00:00 2001 From: Simpy Date: Sun, 26 Jan 2025 18:31:59 -0500 Subject: [PATCH] fix fake castbar displaying when disabled --- ElvUI_Libraries/Core/oUF/elements/castbar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ElvUI_Libraries/Core/oUF/elements/castbar.lua b/ElvUI_Libraries/Core/oUF/elements/castbar.lua index 8c567673a1..9a5bb37431 100644 --- a/ElvUI_Libraries/Core/oUF/elements/castbar.lua +++ b/ElvUI_Libraries/Core/oUF/elements/castbar.lua @@ -714,6 +714,10 @@ local function Disable(self) self:UnregisterEvent('UNIT_SPELLCAST_NOT_INTERRUPTIBLE', CastInterruptible) end + -- ElvUI block + self:UnregisterEvent('UNIT_SPELLCAST_SENT', UNIT_SPELLCAST_SENT) + -- end block + element:SetScript('OnUpdate', nil) end end