Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
--COMBAT_LOG_EVENT_UNFILTERED PLAYER_REGEN_DISABLED
function(e, ...)
if e == "COMBAT_LOG_EVENT_UNFILTERED" then
local se = select(2, ...)
if se == "SPELL_ENERGIZE" then
local caster = select(9, ...)
if caster == UnitName("player") then
local spell = select(13, ...)
if spell == "Lucid Dreams" then
local amount = select(15, ...)
aura_env.amount = aura_env.amount + amount
return true
end
end
end
elseif e == "PLAYER_REGEN_DISABLED" then
aura_env.amount = 0
end
end
--DISPLAY
function()
return aura_env.amount
end
--INIT
aura_env.amount = 0