Add stylua toml

This commit is contained in:
2025-05-04 14:27:32 +02:00
parent 21b6ecccd0
commit cbe7741954
6 changed files with 191 additions and 546 deletions

View File

@@ -206,132 +206,88 @@ local function Init()
---@return number, nil|string
GetTimestamp = function(...)
local val = select(CLEUEventInfo["GENERIC"]["timestamp"], ...)
if val == nil then
return 0, "Timestamp is nil or missing"
end
if type(val) ~= "number" then
return 0, "Timestamp is not a number"
end
if val == nil then return 0, "Timestamp is nil or missing" end
if type(val) ~= "number" then return 0, "Timestamp is not a number" end
return val, nil
end,
---@param ... any
---@return string, nil|string
GetSubevent = function(...)
local val = select(CLEUEventInfo["GENERIC"]["subevent"], ...)
if val == nil then
return "", "Subevent is nil or missing"
end
if type(val) ~= "string" then
return "", "Subevent is not a string"
end
if val == nil then return "", "Subevent is nil or missing" end
if type(val) ~= "string" then return "", "Subevent is not a string" end
return val, nil
end,
---@param ... any
---@return boolean, nil|string
GetHideCaster = function(...)
local val = select(CLEUEventInfo["GENERIC"]["hideCaster"], ...)
if val == nil then
return false, "HideCaster is nil or missing"
end
if type(val) ~= "boolean" then
return false, "HideCaster is not a boolean"
end
if val == nil then return false, "HideCaster is nil or missing" end
if type(val) ~= "boolean" then return false, "HideCaster is not a boolean" end
return val, nil
end,
---@param ... any
---@return string, nil|string
GetSourceGUID = function(...)
local val = select(CLEUEventInfo["GENERIC"]["sourceGUID"], ...)
if val == nil then
return "", "SourceGUID is nil or missing"
end
if type(val) ~= "string" then
return "", "SourceGUID is not a string"
end
if val == nil then return "", "SourceGUID is nil or missing" end
if type(val) ~= "string" then return "", "SourceGUID is not a string" end
return val, nil
end,
---@param ... any
---@return string, nil|string
GetSourceName = function(...)
local val = select(CLEUEventInfo["GENERIC"]["sourceName"], ...)
if val == nil then
return "", "SourceName is nil or missing"
end
if type(val) ~= "string" then
return "", "SourceName is not a string"
end
if val == nil then return "", "SourceName is nil or missing" end
if type(val) ~= "string" then return "", "SourceName is not a string" end
return val, nil
end,
---@param ... any
---@return number, nil|string
GetSourceFlags = function(...)
local val = select(CLEUEventInfo["GENERIC"]["sourceFlags"], ...)
if val == nil then
return 0, "SourceFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "SourceFlags is not a number"
end
if val == nil then return 0, "SourceFlags is nil or missing" end
if type(val) ~= "number" then return 0, "SourceFlags is not a number" end
return val, nil
end,
---@param ... any
---@return number, nil|string
GetSourceRaidFlags = function(...)
local val = select(CLEUEventInfo["GENERIC"]["sourceRaidFlags"], ...)
if val == nil then
return 0, "SourceRaidFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "SourceRaidFlags is not a number"
end
if val == nil then return 0, "SourceRaidFlags is nil or missing" end
if type(val) ~= "number" then return 0, "SourceRaidFlags is not a number" end
return val, nil
end,
---@param ... any
---@return string, nil|string
GetDestGUID = function(...)
local val = select(CLEUEventInfo["GENERIC"]["destGUID"], ...)
if val == nil then
return "", "DestGUID is nil or missing"
end
if type(val) ~= "string" then
return "", "DestGUID is not a string"
end
if val == nil then return "", "DestGUID is nil or missing" end
if type(val) ~= "string" then return "", "DestGUID is not a string" end
return val, nil
end,
---@param ... any
---@return string, nil|string
GetDestName = function(...)
local val = select(CLEUEventInfo["GENERIC"]["destName"], ...)
if val == nil then
return "", "DestName is nil or missing"
end
if type(val) ~= "string" then
return "", "DestName is not a string"
end
if val == nil then return "", "DestName is nil or missing" end
if type(val) ~= "string" then return "", "DestName is not a string" end
return val, nil
end,
---@param ... any
---@return number, nil|string
GetDestFlags = function(...)
local val = select(CLEUEventInfo["GENERIC"]["destFlags"], ...)
if val == nil then
return 0, "DestFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "DestFlags is not a number"
end
if val == nil then return 0, "DestFlags is nil or missing" end
if type(val) ~= "number" then return 0, "DestFlags is not a number" end
return val, nil
end,
---@param ... any
---@return number, nil|string
GetDestRaidFlags = function(...)
local val = select(CLEUEventInfo["GENERIC"]["destRaidFlags"], ...)
if val == nil then
return 0, "DestRaidFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "DestRaidFlags is not a number"
end
if val == nil then return 0, "DestRaidFlags is nil or missing" end
if type(val) ~= "number" then return 0, "DestRaidFlags is not a number" end
return val, nil
end,
@@ -346,12 +302,8 @@ local function Init()
---@return number, nil|string
GetSpellId = function(...)
local val = select(CLEUEventInfo["GENERIC_SPELL"]["spellId"], ...)
if val == nil then
return 0, "SpellId is nil or missing"
end
if type(val) ~= "number" then
return 0, "SpellId is not a number"
end
if val == nil then return 0, "SpellId is nil or missing" end
if type(val) ~= "number" then return 0, "SpellId is not a number" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -365,12 +317,8 @@ local function Init()
---@return string, nil|string
GetSpellName = function(...)
local val = select(CLEUEventInfo["GENERIC_SPELL"]["spellName"], ...)
if val == nil then
return "", "SpellName is nil or missing"
end
if type(val) ~= "string" then
return "", "SpellName is not a string"
end
if val == nil then return "", "SpellName is nil or missing" end
if type(val) ~= "string" then return "", "SpellName is not a string" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -384,12 +332,8 @@ local function Init()
---@return number, nil|string
GetSpellSchool = function(...)
local val = select(CLEUEventInfo["GENERIC_SPELL"]["spellSchool"], ...)
if val == nil then
return 0, "SpellSchool is nil or missing"
end
if type(val) ~= "number" then
return 0, "SpellSchool is not a number"
end
if val == nil then return 0, "SpellSchool is nil or missing" end
if type(val) ~= "number" then return 0, "SpellSchool is not a number" end
return val, nil
end,
@@ -419,16 +363,10 @@ local function Init()
---@return number, nil|string
GetAmount = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["amount"], ...)
if val == nil then
return 0, "Amount is nil or missing"
end
if type(val) ~= "number" then
return 0, "Amount is not a number"
end
if val == nil then return 0, "Amount is nil or missing" end
if type(val) ~= "number" then return 0, "Amount is not a number" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -448,22 +386,12 @@ local function Init()
---@return number, nil|string
GetOverkill = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if not CLEUEventInfo[subevent] then
return 0, "Subevent is not a valid event"
end
if not CLEUEventInfo[subevent]["overkill"] then
return 0, "Overkill is nil or missing"
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
if not CLEUEventInfo[subevent] then return 0, "Subevent is not a valid event" end
if not CLEUEventInfo[subevent]["overkill"] then return 0, "Overkill is nil or missing" end
local val = select(CLEUEventInfo[subevent]["overkill"], ...)
if val == nil then
return 0, "Overkill is nil or missing"
end
if type(val) ~= "number" then
return 0, "Overkill is not a number"
end
if val == nil then return 0, "Overkill is nil or missing" end
if type(val) ~= "number" then return 0, "Overkill is not a number" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -483,16 +411,10 @@ local function Init()
---@return number, nil|string
GetSchool = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["school"], ...)
if val == nil then
return 0, "School is nil or missing"
end
if type(val) ~= "number" then
return 0, "School is not a number"
end
if val == nil then return 0, "School is nil or missing" end
if type(val) ~= "number" then return 0, "School is not a number" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -514,16 +436,10 @@ local function Init()
---@return boolean, nil|string
GetResisted = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["resisted"], ...)
if val == nil then
return false, "Resisted is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Resisted is not a boolean"
end
if val == nil then return false, "Resisted is nil or missing" end
if type(val) ~= "boolean" then return false, "Resisted is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -545,16 +461,10 @@ local function Init()
---@return boolean, nil|string
GetBlocked = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["blocked"], ...)
if val == nil then
return false, "Blocked is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Blocked is not a boolean"
end
if val == nil then return false, "Blocked is nil or missing" end
if type(val) ~= "boolean" then return false, "Blocked is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -577,16 +487,10 @@ local function Init()
---@return boolean, nil|string
GetAbsorbed = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["absorbed"], ...)
if val == nil then
return false, "Absorbed is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Absorbed is not a boolean"
end
if val == nil then return false, "Absorbed is nil or missing" end
if type(val) ~= "boolean" then return false, "Absorbed is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -608,16 +512,10 @@ local function Init()
---@return boolean, nil|string
GetCritical = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["critical"], ...)
if val == nil then
return false, "Critical is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Critical is not a boolean"
end
if val == nil then return false, "Critical is nil or missing" end
if type(val) ~= "boolean" then return false, "Critical is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -637,16 +535,10 @@ local function Init()
---@return boolean, nil|string
GetGlancing = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["glancing"], ...)
if val == nil then
return false, "Glancing is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Glancing is not a boolean"
end
if val == nil then return false, "Glancing is nil or missing" end
if type(val) ~= "boolean" then return false, "Glancing is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -666,16 +558,10 @@ local function Init()
---@return boolean, nil|string
GetCrushing = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["crushing"], ...)
if val == nil then
return false, "Crushing is nil or missing"
end
if type(val) ~= "boolean" then
return false, "Crushing is not a boolean"
end
if val == nil then return false, "Crushing is nil or missing" end
if type(val) ~= "boolean" then return false, "Crushing is not a boolean" end
return val, nil
end,
--- Specific to subevents prefixed by:
@@ -696,16 +582,10 @@ local function Init()
---@return boolean, nil|string
GetIsOffHand = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return false, string.format("Failed getting subevent due to: %s", err)
end
if err then return false, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["isOffHand"], ...)
if val == nil then
return false, "IsOffHand is nil or missing"
end
if type(val) ~= "boolean" then
return false, "IsOffHand is not a boolean"
end
if val == nil then return false, "IsOffHand is nil or missing" end
if type(val) ~= "boolean" then return false, "IsOffHand is not a boolean" end
return val, nil
end,
@@ -728,16 +608,10 @@ local function Init()
---@return string, nil|string
GetMissType = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return "", string.format("Failed getting subevent due to: %s", err)
end
if err then return "", string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["missType"], ...)
if val == nil then
return "", "MissType is nil or missing"
end
if type(val) ~= "string" then
return "", "MissType is not a string"
end
if val == nil then return "", "MissType is nil or missing" end
if type(val) ~= "string" then return "", "MissType is not a string" end
return val, nil
end,
@@ -760,16 +634,10 @@ local function Init()
--- return type is unconfirmed!
GetAmountMissed = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["amountMissed"], ...)
if val == nil then
return 0, "AmountMissed is nil or missing"
end
if type(val) ~= "number" then
return 0, "AmountMissed is not a number"
end
if val == nil then return 0, "AmountMissed is nil or missing" end
if type(val) ~= "number" then return 0, "AmountMissed is not a number" end
return val, nil
end,
@@ -792,16 +660,10 @@ local function Init()
---@return number, nil|string
GetOverhealing = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["overhealing"], ...)
if val == nil then
return 0, "Overhealing is nil or missing"
end
if type(val) ~= "number" then
return 0, "Overhealing is not a number"
end
if val == nil then return 0, "Overhealing is nil or missing" end
if type(val) ~= "number" then return 0, "Overhealing is not a number" end
return val, nil
end,
@@ -822,16 +684,10 @@ local function Init()
---@return string, nil|string
GetExtraGUID = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return "", string.format("Failed getting subevent due to: %s", err)
end
if err then return "", string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraGUID"], ...)
if val == nil then
return "", "ExtraGUID is nil or missing"
end
if type(val) ~= "string" then
return "", "ExtraGUID is not a string"
end
if val == nil then return "", "ExtraGUID is nil or missing" end
if type(val) ~= "string" then return "", "ExtraGUID is not a string" end
return val, nil
end,
@@ -852,16 +708,10 @@ local function Init()
---@return string, nil|string
GetExtraName = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return "", string.format("Failed getting subevent due to: %s", err)
end
if err then return "", string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraName"], ...)
if val == nil then
return "", "ExtraName is nil or missing"
end
if type(val) ~= "string" then
return "", "ExtraName is not a string"
end
if val == nil then return "", "ExtraName is nil or missing" end
if type(val) ~= "string" then return "", "ExtraName is not a string" end
return val, nil
end,
@@ -882,16 +732,10 @@ local function Init()
---@return number, nil|string
GetExtraFlags = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraFlags"], ...)
if val == nil then
return 0, "ExtraFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraFlags is not a number"
end
if val == nil then return 0, "ExtraFlags is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraFlags is not a number" end
return val, nil
end,
@@ -912,16 +756,10 @@ local function Init()
---@return number, nil|string
GetExtraRaidFlags = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraRaidFlags"], ...)
if val == nil then
return 0, "ExtraRaidFlags is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraRaidFlags is not a number"
end
if val == nil then return 0, "ExtraRaidFlags is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraRaidFlags is not a number" end
return val, nil
end,
@@ -946,16 +784,10 @@ local function Init()
---@return number, nil|string
GetExtraSpellID = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraSpellID"], ...)
if val == nil then
return 0, "ExtraSpellID is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraSpellID is not a number"
end
if val == nil then return 0, "ExtraSpellID is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraSpellID is not a number" end
return val, nil
end,
@@ -981,16 +813,10 @@ local function Init()
---@return string, nil|string
GetExtraSpellName = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return "", string.format("Failed getting subevent due to: %s", err)
end
if err then return "", string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraSpellName"], ...)
if val == nil then
return "", "extraSpellName is nil or missing"
end
if type(val) ~= "string" then
return "", "extraSpellName is not a string"
end
if val == nil then return "", "extraSpellName is nil or missing" end
if type(val) ~= "string" then return "", "extraSpellName is not a string" end
return val, nil
end,
@@ -1016,16 +842,10 @@ local function Init()
---@return number, nil|string
GetExtraSchool = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraSchool"], ...)
if val == nil then
return 0, "ExtraSchool is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraSchool is not a number"
end
if val == nil then return 0, "ExtraSchool is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraSchool is not a number" end
return val, nil
end,
@@ -1046,16 +866,10 @@ local function Init()
---@return number, nil|string
GetAbsorbedAmount = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["absorbedAmount"], ...)
if val == nil then
return 0, "AbsorbedAmount is nil or missing"
end
if type(val) ~= "number" then
return 0, "AbsorbedAmount is not a number"
end
if val == nil then return 0, "AbsorbedAmount is nil or missing" end
if type(val) ~= "number" then return 0, "AbsorbedAmount is not a number" end
return val, nil
end,
@@ -1076,16 +890,10 @@ local function Init()
---@return number, nil|string
GetOverEnergize = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["overEnergize"], ...)
if val == nil then
return 0, "OverEnergize is nil or missing"
end
if type(val) ~= "number" then
return 0, "OverEnergize is not a number"
end
if val == nil then return 0, "OverEnergize is nil or missing" end
if type(val) ~= "number" then return 0, "OverEnergize is not a number" end
return val, nil
end,
@@ -1110,16 +918,10 @@ local function Init()
---@return number, nil|string
GetPowerType = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["powerType"], ...)
if val == nil then
return 0, "PowerType is nil or missing"
end
if type(val) ~= "number" then
return 0, "PowerType is not a number"
end
if val == nil then return 0, "PowerType is nil or missing" end
if type(val) ~= "number" then return 0, "PowerType is not a number" end
return val, nil
end,
@@ -1141,16 +943,10 @@ local function Init()
---@return number, nil|string
GetExtraAmount = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraAmount"], ...)
if val == nil then
return 0, "ExtraAmount is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraAmount is not a number"
end
if val == nil then return 0, "ExtraAmount is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraAmount is not a number" end
return val, nil
end,
@@ -1179,16 +975,10 @@ local function Init()
---@return number, nil|string
GetExtraSpellId = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["extraSpellId"], ...)
if val == nil then
return 0, "ExtraSpellId is nil or missing"
end
if type(val) ~= "number" then
return 0, "ExtraSpellId is not a number"
end
if val == nil then return 0, "ExtraSpellId is nil or missing" end
if type(val) ~= "number" then return 0, "ExtraSpellId is not a number" end
return val, nil
end,
@@ -1217,16 +1007,10 @@ local function Init()
---@return number, nil|string
GetExtraAuraType = function(...)
local subevent, err = CLEUParser.GetSubevent(...)
if err then
return 0, string.format("Failed getting subevent due to: %s", err)
end
if err then return 0, string.format("Failed getting subevent due to: %s", err) end
local val = select(CLEUEventInfo[subevent]["auraType"], ...)
if val == nil then
return 0, "AuraType is nil or missing"
end
if type(val) ~= "number" then
return 0, "AuraType is not a number"
end
if val == nil then return 0, "AuraType is nil or missing" end
if type(val) ~= "number" then return 0, "AuraType is not a number" end
return val, nil
end,
}
@@ -1236,7 +1020,5 @@ local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("GUILD_ROSTER_UPDATE")
frame:SetScript("OnEvent", function(self, event, ...)
Init()
end)
frame:SetScript("OnEvent", function(self, event, ...) Init() end)
Init()