View Single Post
06/05/19, 04:15 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,964
For me self.ending seems to be the time the taunt huff runs in total where GetFrameTimeSeconds() returns the current seconds of the game client's frame. This calculates the duration (or time left?) and if duration is <=0 I guess the huff will be gone and the taunt expired.
The zo_round functions rounds the calculated subtraction to a value then, but here I'm not sure if it only rounds to 0 or 1 this way or any other value like a floating one.

But I assume you should check what value the self.ending is and change it then to 12s = 12000ms.
Try this in the line AFTER local duration =...

d("ending: ".. tostring(self.ending).. ", duration: ".. tostring(duration))

It should print the value of self.ending & duration to chat so you can see them, and react on them to alter the code.
E.g. before the line of local duration =...
maybe insert self.ending = 12000 (only a guess!)
  Reply With Quote