Make quote around cleu fields

This commit is contained in:
2024-11-09 15:06:29 +01:00
parent 6949a1db29
commit d00a21266a

View File

@@ -1,7 +1,8 @@
local function varargToString(...)
local output = {}
for i = 1, select("#", ...) do
output[#output + 1] = tostring(select(i, ...))
local value = select(i, ...)
output[#output + 1] = "\"" .. tostring(value) .. "\""
end
return table.concat(output, ",")
end
@@ -14,6 +15,7 @@ if not WeakAurasSaved.Cyka.CombatLog then WeakAurasSaved.Cyka.CombatLog = {} end
---@param subevent string
---@param ... any
aura_env.LogSpell = function(subevent, ...)
print(varargToString(subevent, ...))
table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...))
end
-- /dump WeakAurasSaved.Cyka.CombatLog