WoWInterface - View Single Post - Help with using expirationTime
View Single Post
05-06-20, 02:37 PM   #12
nUI Maintainer
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,532
Originally Posted by SDPhantom View Post
They get shuffled around based on start time. Note refreshing an existing buff doesn't change its position.
Also, you should consider buffs getting reapplied before their timer expires or the user canceling buffs. Both of these make C_Timer.After() a poor candidate.

I did say it was a theory

My theory was that C_Timer may be an alternative to the update routine as long as you do the appropriate checks and include changes based on the UnitAura event to make adjustments accordingly ... adjusting the timer ( if possible ) to reflect the new value due to early re-application and cancel the timer ( again if possible ) so that it's function doesn't get called.

nUI currently uses the update routine and UnitAura and works fine for what it does with them. But it's good to know that C_Timer may not be the best option for some areas of wow for if and when I ever consider it.
  Reply With Quote