Skip to content

Commit

Permalink
feat(Equipment): Add item range overrides table
Browse files Browse the repository at this point in the history
- Currently only includes Belor'relos
- Use the item ID as the index and the range as the value
  • Loading branch information
Cilraaz committed Jan 17, 2024
1 parent bff3e6d commit e4a0c57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HeroLib/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ do
-- Dragonflight
SkeweringColdDebuff = Spell(388929),
}
local RangeOverrides = {
[207172] = 10, -- Belor'relos, the Suncaller
}

-- Check if the trinket is coded as blacklisted by the user or not.
local function IsUserItemBlacklisted(Item)
Expand Down Expand Up @@ -370,6 +373,7 @@ do
local ItemSlot = Item:SlotIDs()[1]
local ItemSpell = Item:OnUseSpell()
local ItemRange = (ItemSpell and ItemSpell.MaximumRange > 0 and ItemSpell.MaximumRange <= 100) and ItemSpell.MaximumRange or 100
if RangeOverrides[ItemID] then ItemRange = RangeOverrides[ItemID] end
return Item, ItemSlot, ItemRange
end
end
Expand Down

0 comments on commit e4a0c57

Please sign in to comment.