Skip to content

Commit

Permalink
DebuffTimers: upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KasVital committed Feb 26, 2017
1 parent c0edacc commit 6ec5edc
Show file tree
Hide file tree
Showing 5 changed files with 2,900 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DebuffTimers/Cooldown.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- dirty hooking - same as luna
function CooldownFrame_OnUpdateModel()
if ( this.stopping == 0 ) then
local finished = (GetTime() - this.start) / this.duration;
if ( finished < 1.0 ) then
if this.reverse then
finished = 1-finished
end
local time = finished * 1000;
this:SetSequenceTime(0, time);
return;
end
this.stopping = 1;
this:SetSequence(1);
this:SetSequenceTime(1, 0);
else
this:AdvanceTime();
end
end
Loading

0 comments on commit 6ec5edc

Please sign in to comment.