From a4dda0d301cf0879bd63777a7df49d4c0bd28baf Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 19 Sep 2012 04:46:38 +0000 Subject: [PATCH] - Ticket 152: fixed SnD duration prediction for 5.0. --- modules/SliceAndDice.lua | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/modules/SliceAndDice.lua b/modules/SliceAndDice.lua index fe23353..6e3ef8a 100644 --- a/modules/SliceAndDice.lua +++ b/modules/SliceAndDice.lua @@ -23,6 +23,11 @@ local sndDuration = 0 local CurrMaxSnDDuration = 0 local PotentialSnDDuration = 0 +if IceHUD.WowVer >= 50000 then + baseTime = 12 + gapPerComboPoint = 6 +end + -- Constructor -- function SliceAndDice.prototype:init() SliceAndDice.super.prototype.init(self, "SliceAndDice", "player") @@ -327,17 +332,17 @@ function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints) maxduration = maxduration + netherbladeBonus end - if self:HasGlyphBonus() then - maxduration = maxduration + glyphBonusSec - end - - local rank = 0 - local _ if IceHUD.WowVer < 50000 then - _, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx) - end + if self:HasGlyphBonus() then + 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 end