- increased vertical offsets (by request)

- fixed Slice and Dice module for new Imp SnD talent values as well as the new SnD glyph
This commit is contained in:
Parnic
2008-10-16 14:30:43 +00:00
parent c1c7ada05e
commit 7cb9c738cc
2 changed files with 22 additions and 3 deletions

View File

@ -6,12 +6,15 @@ local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
-- Parnic - bah, have to abandon the more robust string representation of each slot because of loc issues...
local NetherbladeEquipLocList = {1, 3, 5, 7, 10} --"HeadSlot", "ShoulderSlot", "ChestSlot", "LegsSlot", "HandsSlot"}
local GlyphSpellId = 56810
local baseTime = 9
local gapPerComboPoint = 3
local netherbladeBonus = 3
local glyphBonusSec = 3
local impSndTalentPage = 2
local impSndTalentIdx = 4
local impSndBonusPerRank = 0.15
local impSndBonusPerRank = 0.25
local maxComboPoints = 5
local sndEndTime = 0
local sndDuration = 0
@ -302,6 +305,10 @@ function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
maxduration = maxduration + netherbladeBonus
end
if self:HasGlyphBonus() then
maxduration = maxduration + glyphBonusSec
end
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
maxduration = maxduration * (1 + (rank * impSndBonusPerRank))
@ -335,6 +342,18 @@ function SliceAndDice.prototype:HasNetherbladeBonus()
end
end
function SliceAndDice.prototype:HasGlyphBonus()
for i=1,GetNumGlyphSockets() do
local enabled, _, spell = GetGlyphSocketInfo(i)
if enabled and spell == GlyphSpellId then
return true
end
end
return false
end
function SliceAndDice.prototype:GetItemIdFromItemLink(linkStr)
local itemId