Smart way to register unit aura event for all raid members
Hello! So i am reaching out for some smart advice to register every raid member in a a raid on the unit_aura event.
Some quick info about the addon: I am gathering each raid members debuffs (UnitDebuff()) and checking if a debuff on the raid member exists in my pre defined list of debuffs that i am checking. How would a smart way be to register all the raid members on the event "UNIT_AURA" for this? What i currently have is something along this line Lua Code:
Would this be a good and smart way to register all the raid members under the event "UNIT_AURA" in order to check the raid members for debuffs? It is important for me to have the frame:UNIT_AURA() function executed whenever anything in regards to debuffs happends on whatever player in my raid. Kinds regards! |
Events starting with UNIT_ will pass the unit the event is for as the first parameter.
Lua Code:
|
All times are GMT -6. The time now is 07:56 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI