Files
wow-weakauras/FreshShit/CLEUSaver/init.lua
2024-11-07 23:12:09 +01:00

20 lines
718 B
Lua

local function varargToString(...)
local output = {}
for i = 1, select("#", ...) do
output[#output + 1] = string.format("%d = %s", i, tostring(select(i, ...)))
end
return table.concat(output, "; ")
end
if not WeakAurasSaved then WeakAurasSaved = {} end
if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end
if not WeakAurasSaved.Cyka.CombatLog then WeakAurasSaved.Cyka.CombatLog = {} end
--/run WeakAurasSaved.Cyka.CombatLog = {}
---@param spellName string
---@param spellId number
---@param subevent string
---@param ... any
aura_env.LogSpell = function(subevent, ...)
table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...))
end
/dump WeakAurasSaved.Cyka.CombatLog