Skip to content

Commit

Permalink
feat(Equipment): Handle blacklisting Kaheti trinket
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilraaz committed Oct 2, 2024
1 parent 45f9ae4 commit 0923a52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HeroLib/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ do
TreemouthsFesteringSplinter = Item(193652, {13, 14}),
-- The War Within
ConcoctionKissofDeath = Item(215174, {13, 14}),
KahetiEmblem = Item(225651, {13, 14}),
}

local CustomItemSpells = {
Expand All @@ -399,6 +400,7 @@ do
SkeweringColdDebuff = Spell(388929),
-- The War Within
ConcoctionKissofDeathBuff = Spell(435493),
KahetiEmblemBuff = Spell(455464),
}

local RangeOverrides = {
Expand Down Expand Up @@ -452,6 +454,10 @@ do
return Player:BuffUp(CustomItemSpells.ConcoctionKissofDeathBuff)
end

if ItemID == CustomItems.KahetiEmblem:ID() then
return Player:BuffStack(CustomItemSpells.KahetiEmblemBuff) < 4 and not (Player:BuffUp(CustomItemSpells.KahetiEmblemBuff) and Player:BuffRemains(CustomItemSpells.KahetiEmblemBuff) < 3) or Player:BuffDown(CustomItemSpells.KahetiEmblemBuff)
end

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

Expand Down

0 comments on commit 0923a52

Please sign in to comment.