- if "always display at full alpha" is checked for slice and dice bar, then don't let it hide itself

This commit is contained in:
Parnic
2010-07-13 02:51:26 +00:00
parent f1ce0700e3
commit 51cdf9fb1f

View File

@ -49,7 +49,11 @@ function SliceAndDice.prototype:Enable(core)
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateDurationBar")
end
if not self.moduleSettings.alwaysFullAlpha then
self:Show(false)
else
self:UpdateSliceAndDice(self.unit)
end
self:SetBottomText1("")
end
@ -239,9 +243,11 @@ function SliceAndDice.prototype:UpdateSliceAndDice(unit, fromUpdate)
self.frame:SetScript("OnUpdate", nil)
end
if not self.moduleSettings.alwaysFullAlpha then
self:Show(false)
end
end
end
-- somewhat redundant, but we also need to check potential remaining time
if (remaining ~= nil) or PotentialSnDDuration > 0 then