WoWInterface - View Single Post - Help with using expirationTime
View Single Post
05-05-20, 12:51 AM   #2
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 25
Is this all of your code? The loop will only run once on login/reload.

You could take a look at the events when you apply or update a buff.
Then check when the buff expires and use C_Timer to show the warning at the right time.

Or run your loop with an OnUpdate script or some other event.

I've never really worked with buffs, so not sure what and how often the events are called.

A bit about events: https://wow.gamepedia.com/Handling_events
  Reply With Quote