[LUA] Questions about events and the execution order
Hi.
First, sorry for my bad English. I am creating an addon that needs check the buffs/debuffs of the some units when they are casted. I have 4 questions. I am using COMBAT_LOG_EVENT_UNFILTERED and checking the type of events SPELL_AURA_APPLIED, SPELL_AURA_REFRESH for check when the buff/debuff applieds, but the duration it's not included in this event. For check the durations, I think I can't use UnitAura() function on COMBAT_LOG_EVENT_UNFILTERED, because this it's insecure, I think UnitAura() function it's only guaranted to provide correct results after UNIT_AURA event. I use the event UNIT_AURA, but some drawbacks occurs:
For the events, I am using a Frame and RegisterEvent function. Now, the questions:
Thanks for the help! :) |
Secure and insecure are terms for the taint system and could cause some confusion if used in this example. Another side note, UnitAura() can only query units with a valid UnitID, so the limitation of UNIT_AURA is the same as what you can examine with UnitAura().
|
Thanks for the info. It's all I needed know :) :) :)
|
All times are GMT -6. The time now is 12:49 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI