Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2621,6 +2621,12 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
end

local jewelData = self.jewelData
-- Rebuild rather than append: GetActiveModListForSlotNum rebuilds the
-- mod list without going through BuildModList, the only place that
-- resets jewelData, so this list would grow on every rebuild.
-- Cleared to nil, not {}, because CalcSetup falls back to the default
-- radius func with `funcList or { ... }` and {} is truthy in Lua.
jewelData.funcList = nil
for _, func in ipairs(modList:List(nil, "JewelFunc")) do
jewelData.funcList = jewelData.funcList or { }
t_insert(jewelData.funcList, func)
Expand Down