Skip to content

Commit

Permalink
feat(Equipment): Only suggest Shard of Annhylde's Aegis when actively…
Browse files Browse the repository at this point in the history
… tanking
  • Loading branch information
Cilraaz committed Jul 10, 2021
1 parent 2a68c9a commit 2129857
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HeroLib/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ do
MistcallerOcarina = Item(178715, {13, 14}),
SoulIgniter = Item(184019, {13, 14}),
DarkmoonDeckIndomitable = Item(173096, {13, 14}),
ShardofAnnhyldesAegis = Item(186424, {13, 14}),
}
local CustomTrinketsSpells = {
FlayedwingToxinBuff = Spell(345545),
Expand Down Expand Up @@ -113,6 +114,8 @@ do
if Player:BuffDown(CustomTrinketsSpells.SoulIgniterBuff) and Target:IsInRange(40) then return TrinketItem end
elseif TrinketItemID == CustomTrinketItems.DarkmoonDeckIndomitable:ID() then
if (Player:BuffUp(CustomTrinketsSpells.IndomitableFive) or Player:BuffUp(CustomTrinketsSpells.IndomitableSix) or Player:BuffUp(CustomTrinketsSpells.IndomitableSeven) or Player:BuffUp(CustomTrinketsSpells.IndomitableEight)) and (Player:IsTankingAoE(8) or Player:IsTanking(Target)) then return TrinketItem end
elseif TrinketItemID == CustomTrinketItems.ShardofAnnhyldesAegis:ID() then
if (Player:IsTankingAoE(8) or Player:IsTanking(Target)) then return TrinketItem end
else
return TrinketItem
end
Expand Down

0 comments on commit 2129857

Please sign in to comment.