re-learning WoW Lua; building a helper to count units affected by player actions
Not ready for use, just working out the theory and hoping to get feedback.
When finished, the idea is to provide other addons with a table of aggregates.
Each aggregate records the number of harmed or helped units over the last n
seconds.
For example:
{
1: {
"harm": 2,
"help": 0
},
2: {
"harm": 5,
"help": 2
},
-- ... ,
10: {
"harm": 8,
"help": 3
},
}
Armed with these aggregates, addons should be able to infer, primarily, the number of friendly or hostile units the player is currently engaged with.
Hopefully, there'll be discussions about this work in the following places: