From 9a7a21d05ad8eb653e1c49038fe50270ec6b9764 Mon Sep 17 00:00:00 2001 From: Cilraaz Date: Wed, 16 Dec 2020 16:36:48 -0500 Subject: [PATCH] feat(Equipment): Add custom handling for Mistcaller Ocarina --- HeroLib/Class/Unit/Player/Equipment.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HeroLib/Class/Unit/Player/Equipment.lua b/HeroLib/Class/Unit/Player/Equipment.lua index c5c99bbf..aaec2e33 100755 --- a/HeroLib/Class/Unit/Player/Equipment.lua +++ b/HeroLib/Class/Unit/Player/Equipment.lua @@ -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. @@ -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