Skip to content

Commit

Permalink
feat(Equipment): Globally exclude Concoction: Kiss of Death if buff i…
Browse files Browse the repository at this point in the history
…s up
  • Loading branch information
Cilraaz committed Sep 12, 2024
1 parent 979dd87 commit b76fb69
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion HeroLib/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,15 @@ do
-- Dragonflight
GlobeofJaggedIce = Item(193732, {13, 14}),
TreemouthsFesteringSplinter = Item(193652, {13, 14}),
-- The War Within
ConcoctionKissofDeath = Item(215174, {13, 14}),
}

local CustomItemSpells = {
-- Dragonflight
SkeweringColdDebuff = Spell(388929),
SkeweringColdDebuff = Spell(388929),
-- The War Within
ConcoctionKissofDeathBuff = Spell(435493),
}

local RangeOverrides = {
Expand Down Expand Up @@ -423,6 +427,11 @@ do
return not (Player:IsTankingAoE(8) or Player:IsTanking(Target))
end

-- The War Within items being excluded with custom checks.
if ItemID == CustomItems.ConcoctionKissofDeath:ID() then
return Player:BuffUp(CustomItemSpells.ConcoctionKissofDeathBuff)
end

-- Any generic items we always want to exclude from suggestions.
if GenericItems[ItemID] then return true end

Expand Down

0 comments on commit b76fb69

Please sign in to comment.