Update almost all auras to move away from using globals to using aura_env

This commit is contained in:
2024-03-23 12:37:25 +01:00
parent 216d1c0e01
commit a6ddee60ae
29 changed files with 378 additions and 3451 deletions

View File

@@ -7,12 +7,20 @@ function(allstates, e, ...)
local spellId, err = CLEUParser.GetSpellId(...)
if err then return end
local eventMap = EventMap[subevent]
local spellname, err = CLEUParser.GetSpellName(...)
local subevent, err = CLEUParser.GetSubevent(...)
aura_env.LogSpell(spellname, spellId, subevent, ...)
local eventMap = aura_env.EventMap[subevent]
if eventMap == nil then return end
local alert = eventMap[spellId]
if alert == nil then return end
local err = alert:Trigger(allstates, ...)
if err then print(err) end
-- aura_env.LogSpell = function(spellName, spellId, subevent, ...)
-- WeakAurasSaved.Cyka.CLEUExample[#WeakAurasSaved.Cyka.CLEUExample + 1] = varargToString(spellName, spellId, subevent, ...)
-- end
return true
end