diff --git a/Cursive.toc b/Cursive.toc index 41e5042..b54eb11 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,6 +1,6 @@ ## Interface: 11200 -## Title: Cursive 3.0.0 -## Title-zhCN: Cursive 3.0.0 +## Title: Cursive 3.0.1 +## Title-zhCN: Cursive 3.0.1 ## Author: Pepopo ## Notes: Uses GUIDs to show units in combat and track curses ## Notes-zhCN: 使用的GUID功能来显示战斗中的单位并监视诅咒等 diff --git a/curses.lua b/curses.lua index e5c7849..823e64d 100644 --- a/curses.lua +++ b/curses.lua @@ -369,7 +369,7 @@ Cursive:RegisterEvent("SPELL_CHANNEL_START", function(spellID, targetGuid, durat curses.darkHarvestData = { spellID = spellID, targetGuid = targetGuid, - castDuration = curses:ScanTooltipForDuration(spellID), + castDuration = durationMs / 1000, start = GetTime() } end @@ -415,7 +415,7 @@ function curses:GetLastTickTime(curseData) end local tickTime = curseData.duration / ticks - local currentTime = GetTime() + tickTime * .2 -- dh won't apply to previous tick if within 20% of tick time + local currentTime = GetTime() return math.floor((currentTime - curseData.start) / tickTime) * tickTime + curseData.start end diff --git a/spells/warlock.lua b/spells/warlock.lua index 2b71619..0c04858 100644 --- a/spells/warlock.lua +++ b/spells/warlock.lua @@ -21,10 +21,6 @@ function getWarlockSpells() [18880] = { name = L["siphon life"], rank = 3, duration = 30, variableDuration = true, darkHarvest = true, numTicks=10 }, [18881] = { name = L["siphon life"], rank = 4, duration = 30, variableDuration = true, darkHarvest = true, numTicks=10 }, - [52550] = { name = L["dark harvest"], rank = 1, duration = 8, variableDuration = true }, - [52551] = { name = L["dark harvest"], rank = 2, duration = 8, variableDuration = true }, - [52552] = { name = L["dark harvest"], rank = 3, duration = 8, variableDuration = true }, - [603] = { name = L["curse of doom"], rank = 1, duration = 60 }, [704] = { name = L["curse of recklessness"], rank = 1, duration = 120 },