Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions spec/System/TestItemMods_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,8 @@ describe("TetsItemMods", function()
build.itemsTab.slots[case[1]]:SetSelItemId(target.id)
setWickermanCustomMods("")
local base = copyTable(build.calcsTab.mainOutput, true)
-- Use a normal slot with a synthetic type; no Wickerman base/slot/import framework is required.
local source = new("Item"):Item("Rarity: Rare\nSynthetic Wickerman\nPaua Amulet\nImplicits: 0\n20% increased bonuses gained from Equipped "..case[1])
source.type = "Wickerman Lower Limb"
-- A Viscera base in a normal slot keeps the test independent of the Wickerman slots.
local source = new("Item"):Item("Rarity: Rare\nSynthetic Wickerman\nScholar's Leg\nImplicits: 0\n20% increased bonuses gained from Equipped "..case[1])
build.itemsTab:AddItem(source, true)
build.itemsTab.slots.Amulet:SetSelItemId(source.id)
for _, first in ipairs({ true, false }) do
Expand Down
4 changes: 2 additions & 2 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ function calcs.initEnv(build, mode, override, specEnv)
if not build.spec.treeVersion:find("3_27") then
goto continue
end
elseif slotName:match("^Wickerman ") and not env.spec.treeVersion:find("3_30") then
elseif (slotName == "Head" or slotName == "Body" or slotName == "Arm" or slotName == "Leg") and not env.spec.treeVersion:find("3_30") then
goto continue
end
-- ignore item in Ring 3 if The Unseen Hand is not allocated
Expand Down Expand Up @@ -1039,7 +1039,7 @@ function calcs.initEnv(build, mode, override, specEnv)
local equipmentBonusModDB = new("ModDB"):ModDB(env.initialNodeModDB)
equipmentBonusModDB:AddList(build.configTab.modList)
for _, item in pairs(items) do
if item.type:match("^Wickerman ") then
if item.type == "Viscera" then
for _, mod in ipairs(item.modList or { }) do
if mod.name == "EffectOfBonusesFromGloves" or mod.name == "EffectOfBonusesFromBoots" then
equipmentBonusModDB:AddMod(mod)
Expand Down
Loading