Fix issue with aura_env being undefined in closure

This commit is contained in:
2024-03-30 19:24:05 +01:00
parent a46dfa8492
commit 5c9bbd8075

View File

@@ -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