Skip to content

Commit 17cec65

Browse files
committed
Fix item comparison augment copy not treating spell weapons as weapons, or shields as weapon 2s
1 parent 51df964 commit 17cec65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,9 @@ 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 isShield = newItem.base.tags and (newItem.base.tags.shield or newItem.base.tags.focus)
1493+
local newItemType = sourceSlotName or (isWeapon and "Weapon 1") or (isShield and "Weapon 2") or newItem.base.type
14921494
-- tabula rasa has jewel sockets which don't apply here
14931495
if newItem.name == "Tabula Rasa, Garment" then return end
14941496
if self.activeItemSet[newItemType] then

0 commit comments

Comments
 (0)