remove dh from displayed curses

This commit is contained in:
pepopo978
2026-03-19 07:18:57 -07:00
parent 2d5a8315d2
commit cc1b6e19fd
3 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -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功能来显示战斗中的单位并监视诅咒等
+2 -2
View File
@@ -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
-4
View File
@@ -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 },