Code format
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local function varargToString(...)
|
||||
local output = {}
|
||||
for i = 1, select("#", ...) do
|
||||
local value = select(i, ...)
|
||||
output[#output + 1] = "\"" .. tostring(value) .. "\""
|
||||
end
|
||||
return table.concat(output, ",")
|
||||
local output = {}
|
||||
for i = 1, select("#", ...) do
|
||||
local value = select(i, ...)
|
||||
output[#output + 1] = '"' .. tostring(value) .. '"'
|
||||
end
|
||||
return table.concat(output, ",")
|
||||
end
|
||||
|
||||
if not WeakAurasSaved then WeakAurasSaved = {} end
|
||||
@@ -16,7 +16,7 @@ if not WeakAurasSaved.Cyka.CombatLog then WeakAurasSaved.Cyka.CombatLog = {} end
|
||||
---@param ... any
|
||||
aura_env.LogSpell = function(subevent, ...)
|
||||
print(varargToString(subevent, ...))
|
||||
table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...))
|
||||
table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...))
|
||||
end
|
||||
-- /dump WeakAurasSaved.Cyka.CombatLog
|
||||
-- /run WeakAurasSaved.Cyka.CombatLog = {}
|
||||
|
Reference in New Issue
Block a user