Skip to content

Commit

Permalink
feat(Equipment): Add custom handling for Mistcaller Ocarina
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilraaz committed Dec 16, 2020
1 parent 9776816 commit 9a7a21d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions HeroLib/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ do
-- Note: Can still be overriden on a per-module basis by passing in to ExcludedTrinkets
local CustomTrinketItems = {
FlayedwingToxin = Item(178742, {13, 14}),
MistcallerOcarina = Item(178715, {13, 14}),
}
local CustomTrinketsSpells = {
FlayedwingToxinBuff = Spell(345545),
MistcallerVers = Spell(330067),
MistcallerCrit = Spell(332299),
MistcallerHaste = Spell(332300),
MistcallerMastery = Spell(332301),
}

-- Check if the trinket is coded as blacklisted by the user or not.
Expand Down Expand Up @@ -95,6 +100,8 @@ do
-- Global custom trinket handlers
if TrinketItemID == CustomTrinketItems.FlayedwingToxin:ID() then
if not Player:BuffUp(CustomTrinketsSpells.FlayedwingToxinBuff) then return TrinketItem end
elseif TrinketItemID == CustomTrinketItems.MistcallerOcarina:ID() then
if not (Player:BuffUp(CustomTrinketsSpells.MistcallerCrit) or Player:BuffUp(CustomTrinketsSpells.MistcallerHaste) or Player:BuffUp(CustomTrinketsSpells.MistcallerMastery) or Player:BuffUp(CustomTrinketsSpells.MistcallerVers)) then return TrinketItem end
else
return TrinketItem
end
Expand Down

0 comments on commit 9a7a21d

Please sign in to comment.