Skip to content
Permalink
Browse files

Cleanup.

  • Loading branch information...
Wetxius committed Nov 18, 2013
1 parent a92a5db commit ba05ee84d2fe69475d6ca199c7ed1cbecf721725
@@ -11,8 +11,8 @@ local function Update(self, event, unit)
local allIncomingHeal = UnitGetIncomingHeals(unit) or 0
local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit)

if(health + allIncomingHeal > maxHealth * hp.maxOverflow) then
allIncomingHeal = maxHealth * hp.maxOverflow - health
if(health + allIncomingHeal > maxHealth) then
allIncomingHeal = maxHealth - health
end

if(allIncomingHeal < myIncomingHeal) then
@@ -57,10 +57,6 @@ local function Enable(self)
self:RegisterEvent('UNIT_MAXHEALTH', Path)
self:RegisterEvent('UNIT_HEALTH_FREQUENT', Path)

if(not hp.maxOverflow) then
hp.maxOverflow = 1.05
end

return true
end
end
@@ -1093,7 +1093,6 @@ local function Shared(self, unit)
self.HealPrediction = {
myBar = mhpb,
otherBar = ohpb,
maxOverflow = 1,
PostUpdate = function(frame)
if frame.myBar:GetValue() == 0 then frame.myBar:SetAlpha(0) else frame.myBar:SetAlpha(1) end
if frame.otherBar:GetValue() == 0 then frame.otherBar:SetAlpha(0) else frame.otherBar:SetAlpha(1) end
@@ -240,7 +240,6 @@ local function Shared(self, unit)
self.HealPrediction = {
myBar = mhpb,
otherBar = ohpb,
maxOverflow = 1,
}
end

@@ -206,7 +206,6 @@ local function Shared(self, unit)
self.HealPrediction = {
myBar = mhpb,
otherBar = ohpb,
maxOverflow = 1,
}

--self.IncHeal = T.SetFontString(self.Health, C.font.unit_frames_font, C.font.unit_frames_font_size, C.font.unit_frames_font_style)

0 comments on commit ba05ee8

Please sign in to comment.
You can’t perform that action at this time.