mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Ticket 152: fixed SnD duration prediction for 5.0.
This commit is contained in:
@ -23,6 +23,11 @@ local sndDuration = 0
|
|||||||
local CurrMaxSnDDuration = 0
|
local CurrMaxSnDDuration = 0
|
||||||
local PotentialSnDDuration = 0
|
local PotentialSnDDuration = 0
|
||||||
|
|
||||||
|
if IceHUD.WowVer >= 50000 then
|
||||||
|
baseTime = 12
|
||||||
|
gapPerComboPoint = 6
|
||||||
|
end
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function SliceAndDice.prototype:init()
|
function SliceAndDice.prototype:init()
|
||||||
SliceAndDice.super.prototype.init(self, "SliceAndDice", "player")
|
SliceAndDice.super.prototype.init(self, "SliceAndDice", "player")
|
||||||
@ -327,17 +332,17 @@ function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
|
|||||||
maxduration = maxduration + netherbladeBonus
|
maxduration = maxduration + netherbladeBonus
|
||||||
end
|
end
|
||||||
|
|
||||||
if self:HasGlyphBonus() then
|
|
||||||
maxduration = maxduration + glyphBonusSec
|
|
||||||
end
|
|
||||||
|
|
||||||
local rank = 0
|
|
||||||
local _
|
|
||||||
if IceHUD.WowVer < 50000 then
|
if IceHUD.WowVer < 50000 then
|
||||||
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
|
if self:HasGlyphBonus() then
|
||||||
end
|
maxduration = maxduration + glyphBonusSec
|
||||||
|
end
|
||||||
|
|
||||||
maxduration = maxduration * (1 + (rank * impSndBonusPerRank))
|
local rank = 0
|
||||||
|
local _
|
||||||
|
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
|
||||||
|
|
||||||
|
maxduration = maxduration * (1 + (rank * impSndBonusPerRank))
|
||||||
|
end
|
||||||
|
|
||||||
return maxduration
|
return maxduration
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user