Hi all,
I would venture to say that my project is on its track.
The one thing that I am concerned is storing spell id into SV.
For my case, the spell id is being a key of the table and it would have some data within its table as well.
Here's a brief example.
Lua Code:
MyAuraTracker = { -- SavedVariable
["auraIDList"] = {
["*"] = { -- Spec
["buffs"] = {
[2983] = {
-- no filter or unit
},
[1784] = {
["unit"] = "player",
},
[1966] = {
["filter"] = "RAID|GROUP",
},
},
["debuffs"] = {
-- same for debuffs
},
},
},
};
Each spell id could have some data like "filter" and "unit"
or it could also have none.
(Those data will be used for querying UnitAura).
Well... tbh, most of auras will have no data.
For 2983 I tried to assign nil, but it wasn't possible to do so
.
So, after all, I've resulted in making sub table for it which I think is a waste of resources.
Could anyone please suggest me a better solution?
Thank you!