WoWInterface - View Single Post - Track a debuff and start a timer when it's removed
View Single Post
01-27-19, 09:07 AM   #6
A Cobalt Mageweaver
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 217
You are on the right track. Though watching auras with UnitAura on units by GUID requires that unit to have a token(player, target, raid1-40, party1-5, nameplate1-40, etc...) at nearly all times. Caching the duration on UNIT_AURA can help circumvent this while waiting for the CLEU_AURA_REMOVED trigger for fall off. That CLEU event can also be used to start the timer when the aura is removed.

Since your goal is to watch the aura AND a time period afterward your best bet is to register the CLEU event in UNIT_AURA if you cache any auras. Un-registering CLEU after all auras fall off will prevent excessive overhead from scanning the combat log continuously.
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison

Last edited by jeruku : 01-27-19 at 09:08 AM. Reason: Clarity required.
  Reply With Quote