Skip to content

Commit a890f6b

Browse files
committed
Fix item comparison augment copy not treating spell weapons as weapons
1 parent 51df964 commit a890f6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,8 @@ local function isAugmentable(item)
14881488
end
14891489

14901490
function ItemsTabClass:copyAnointsAndAugments(newItem, copyAugments, overwrite, sourceSlotName)
1491-
local newItemType = sourceSlotName or (newItem.base.weapon and "Weapon 1" or newItem.base.type)
1491+
local isWeapon = newItem.base.tags and (newItem.base.tags.onehand or newItem.base.tags.twohand)
1492+
local newItemType = sourceSlotName or (isWeapon and "Weapon 1" or newItem.base.type)
14921493
-- tabula rasa has jewel sockets which don't apply here
14931494
if newItem.name == "Tabula Rasa, Garment" then return end
14941495
if self.activeItemSet[newItemType] then

0 commit comments

Comments
 (0)