Skip to content

Commit

Permalink
Wither support
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Aug 27, 2024
1 parent d8f8040 commit cc34bd6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
36 changes: 26 additions & 10 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,37 @@ Spell({ 316099, 342938 } ,{ name = "", duration = 16, overlay = {0, 4.8, 0.2}, p
})
--Agony
Spell( 980 ,{ name = "", preghost = 5, duration = 18, recast_mark = 5.4, overlay = {0, 5.4, 0.2}, fixedlen = normalize_dots_to, nameplates = true, _ignore_applied_dose = true, ghost = 6, priority = 6, color = colors.WOO, init = creeping_death })

local absolute_cprruption_transform = function(self)
if self._rootSpellID == 445474 then
if GetSpecialization() == 1 then
self.duration = 14
elseif GetSpecialization() == 3 then
self.duration = 14
end
end
if IsPlayerSpell(196103) then -- Absolute Corruption
self.priority = 0.1
self.timeless = true
else
self.priority = 9
self.timeless = false
end
creeping_death(self)
end
--Corruption
Spell( 146739 ,{ name = "", preghost = 5, maxtimers = 5, duration = 14, recast_mark = 4.2, overlay = {0,4.2, 0.2}, priority = 9, fixedlen = normalize_dots_to, nameplates = true, ghost = 6, color = colors.PINKIERED,
init = function(self)
if IsPlayerSpell(196103) then -- Absolute Corruption
self.priority = 0.1
self.timeless = true
else
self.priority = 9
self.timeless = false
end
creeping_death(self)
end,
init = absolute_cprruption_transform,
isknowncheck = function()
return IsPlayerSpell(172)
end})

--Wither (Replaces Immolate/Corruption)
Spell( 445474 ,{ name = "", preghost = 5, maxtimers = 5, duration = 18, recast_mark = 4.2, overlay = {0,4.2, 0.2}, priority = 9, fixedlen = normalize_dots_to, nameplates = true, ghost = 6, color = colors.PINKIERED,
init = absolute_cprruption_transform,
isknowncheck = function()
return IsPlayerSpell(445474)
end})
--Siphon Life
Spell( 63106 ,{ name = "", preghost = 5, duration = 15, recast_mark = 4.5, overlay = {0, 4.5, 0.2}, priority = 5, fixedlen = normalize_dots_to, nameplates = true, ghost = 6, color = colors.DTEAL, init = creeping_death,
isknowncheck = function()
Expand Down
1 change: 1 addition & 0 deletions helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ helpers.Spell = function(id, opts)
id = table.remove(clones, 1) -- extract first spell id from the last as original
opts.clones = clones
end
opts._rootSpellID = id

if opts and not GetSpellInfo(id) then print(string.format("nrun: misssing spell #%d (%s)",id,opts.name)) return end
NugRunningConfig.spells[id] = opts
Expand Down

0 comments on commit cc34bd6

Please sign in to comment.