Advertisement
Infus

WeakAuras patch: Fixing progress at 100%

Oct 21st, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Author: Infus <infus@squorn.de>
  2. Date: Tue Oct 21 10:12:15 2014 +0200
  3.  
  4. *** Animation progress
  5.  
  6. diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua
  7. index b5accf4..2868141 100644
  8. --- a/WeakAuras/WeakAuras.lua
  9. +++ b/WeakAuras/WeakAuras.lua
  10. @@ -4009,8 +4009,6 @@ function WeakAuras.UpdateAnimations()
  11. end
  12. relativeProgress = inverse and (1 - relativeProgress) or relativeProgress;
  13. anim.progress = relativeProgress / anim.duration
  14. - local iteration = math.floor(anim.progress);
  15. - anim.progress = anim.progress - iteration;
  16. if not(anim.iteration) then
  17. anim.iteration = iteration;
  18. elseif(anim.iteration ~= iteration) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement