From 5c9bbd8075c3944be5f6283c300749ad9d3a10a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Sat, 30 Mar 2024 19:24:05 +0100 Subject: [PATCH] Fix issue with aura_env being undefined in closure --- FreshShit/WarlockDispelMaster/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/FreshShit/WarlockDispelMaster/init.lua b/FreshShit/WarlockDispelMaster/init.lua index bf5b3c8..08d2ce1 100644 --- a/FreshShit/WarlockDispelMaster/init.lua +++ b/FreshShit/WarlockDispelMaster/init.lua @@ -67,6 +67,7 @@ aura_env.MakeFrameGlow = function(frame) if healthBar ~= nil then LCG.PixelGlow_Start(healthBar, { 1, 1, 0, 1 }, 16, 0.35, 8, 4) aura_env.BusyFrames[frameName] = true + local aura_env = aura_env C_Timer.After(1, function() LCG.PixelGlow_Stop(healthBar) aura_env.BusyFrames[frameName] = nil