mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Detect SnD max changing more reliably
This commit is contained in:
@ -85,6 +85,10 @@ function SliceAndDice.prototype:Enable(core)
|
|||||||
self:CheckMaxComboPoints()
|
self:CheckMaxComboPoints()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if IceHUD.EventExistsUnitMaxPower then
|
||||||
|
self:RegisterEvent("UNIT_MAXPOWER", "CheckMaxComboPoints")
|
||||||
|
end
|
||||||
|
|
||||||
if not self.moduleSettings.alwaysFullAlpha then
|
if not self.moduleSettings.alwaysFullAlpha then
|
||||||
self:Show(false)
|
self:Show(false)
|
||||||
else
|
else
|
||||||
@ -419,13 +423,11 @@ function SliceAndDice.prototype:UpdateDurationBar(event, unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
|
function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
|
||||||
local maxduration
|
|
||||||
|
|
||||||
if numComboPoints == 0 then
|
if numComboPoints == 0 then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
maxduration = baseTime + ((numComboPoints - 1) * gapPerComboPoint)
|
local maxduration = baseTime + ((numComboPoints - 1) * gapPerComboPoint)
|
||||||
|
|
||||||
if self:HasNetherbladeBonus() then
|
if self:HasNetherbladeBonus() then
|
||||||
maxduration = maxduration + netherbladeBonus
|
maxduration = maxduration + netherbladeBonus
|
||||||
|
Reference in New Issue
Block a user