Update cleusaver to use ,

This commit is contained in:
2024-11-08 21:01:51 +01:00
parent e2113dd722
commit 76aae3c7e0

View File

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