Skip to content

Commit

Permalink
Fix animatedLoss
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollyonn committed Jul 28, 2017
1 parent 96978a6 commit 334189e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -90,7 +90,7 @@ local Enable = function(self, unit)
animatedLoss.min = UnitHealth("player");

animatedLoss.hook = self:GetScript("OnUpdate");
self:HookScript("OnUpdate", OnAnimatedLossUpdate);
self:HookScript2("OnUpdate", OnAnimatedLossUpdate);
--animatedLoss:SetScript("OnUpdate", OnAnimatedLossUpdate);

animatedLoss.duration = .75;
Expand Down
4 changes: 2 additions & 2 deletions ElvUI_Enhanced/Modules/Unitframes/unitframes.lua
Expand Up @@ -23,8 +23,8 @@ hooksecurefunc(UF, "Configure_HealthBar", function(self, frame)
animatedLoss.postponeDelay = frame.db.animatedLoss.postponeDelay;

animatedLoss.PostUpdate = function(self)
self:SetPoint("TOPLEFT", frame.Health:GetStatusBarTexture(), "TOPRIGHT");
self:SetPoint("BOTTOMLEFT", frame.Health:GetStatusBarTexture(), "BOTTOMRIGHT");
self:SetPoint("TOPLEFT", frame.Health.texturePointer, "TOPRIGHT");
self:SetPoint("BOTTOMLEFT", frame.Health.texturePointer, "BOTTOMRIGHT");

local totalWidth = frame.Health:GetSize();
self:SetWidth(totalWidth);
Expand Down

0 comments on commit 334189e

Please sign in to comment.