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
function(...)
local subevent = select(3, ...)
if subevent == "SPELL_CAST_SUCCESS" then
local caster = select(6, ...)
local spell = select(14, ...)
if caster == UnitName("player") and spell == "Hammer of the Righteous" then
aura_env.hammers = aura_env.hammers + 1
end
end
end
--SPELL_ACTIVATION_OVERLAY_GLOW_SHOW
function(_,ID)
if ID == 31935 then
aura_env.shields = aura_env.shields + 1
end
end
--DISPLAY
function()
return aura_env.shields / aura_env.hammers
end
--INIT
aura_env.hammers = 0
aura_env.shields = 0