Skip to content

Commit

Permalink
Haunt/ChaosBolt checks if selected
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Jan 9, 2024
1 parent 459aebc commit d6c1951
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ globals = {
"ChannelInfo",
"GetCVar",
"IsTestBuild",
"C_Engraving",

-- Wrath spell haste
"GetCombatRatingBonus",
Expand Down
20 changes: 18 additions & 2 deletions config.classic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,26 @@ Spell( 4068 , { name = "Iron Grenade", global = true, maxtimers = 1, color = col

if class == "WARLOCK" then
-- Season of Discovery
Cooldown( 403629, { name = "Chaos Bolt", color = colors.TEAL3 })
Cooldown( 403629, { name = "Chaos Bolt", color = colors.TEAL3,
isknowncheck = function()
if C_Engraving.IsEngravingEnabled() then
local INVSLOT_HAND = 10
local engravingInfo = C_Engraving.GetRuneForEquipmentSlot(INVSLOT_HAND);
return engravingInfo.iconTexture == 236291
end
return false
end })
Spell({ 403677, 403685, 403686, 403687, 403688, 403689 }, { name = "Drain Life", duration = 15, ghost = true, nameplates = true, color = colors.TEAL3 }) -- Master Channeler
Spell( 403650 ,{ name = "Lake of Fire", duration = 15, color = colors.RED, ghost = true, singleTarget = true })
Cooldown( 403501 ,{ name = "Haunt", short = "", priority = 8, ghost = true, color = colors.TEAL, overlay = {0, "gcd"}, })
Cooldown( 403501 ,{ name = "Haunt", short = "", priority = 8, ghost = true, color = colors.TEAL, overlay = {0, "gcd"},
isknowncheck = function()
if C_Engraving.IsEngravingEnabled() then
local INVSLOT_HAND = 10
local engravingInfo = C_Engraving.GetRuneForEquipmentSlot(INVSLOT_HAND);
return engravingInfo.iconTexture == 236298
end
return false
end })
Cooldown( 403835, { name = "Shadow Cleave", ghost = true, priority = 5, color = colors.PINKIERED }) -- Meta Aoe
Spell( 412789 , { name = "Demonic Howl", duration = 6, multiTarget = true })
Spell( 425463 , { name = "Demonic Grace", duration = 6, group = "buffs", shine = true, color = colors.REJUV })
Expand Down

0 comments on commit d6c1951

Please sign in to comment.