#Scope of auras in a group

1 messages · Page 1 of 1 (latest)

leaden glade
#

I'm trying to make a weakaura that checks for spell id inclusion in a large table, but I'm gonna make an aura for player, target, party1, party2.. etc. As far as I know, aura_env is local to each aura.

So, what's the best way have access to the same information within the group besides copy pasting the entire table to each one of my auras and redoing that each time I update the table? I could just make it global, but I know that's generally not the best solution. Should I do a WeakAuras.ScanEvents() and keep the table in some helper aura that just handles that?

coarse swan
#

but I'm gonna make an aura for player, target, party1, party2.. etc.

You could keep it as one aura and just have a clone per respective unit, or is there a strict reason why it has to be multiple auras?

I could just make it global, but I know that's generally not the best solution. Should I do a WeakAuras.ScanEvents() and keep the table in some helper aura that just handles that?

Sure that's both possible

#

There's not really a group scope like you want

leaden glade
coarse swan
#

If you set a field called unit in the state to the respective unitId, then when using "anchored to: unit frames" WA will automatically anchor to the correct one

inner flowerBOT
coarse swan
#

So yeah if the anchoring is the issue you can do it with 1 aura