Skip to content

Commit 0492500

Browse files
author
LocalIdentity
committed
Issue with newItem.base.weapon bypassed rest of checks
1 parent c3e5070 commit 0492500

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,12 +1617,8 @@ function ItemsTabClass:CopyAnointsAndEldritchImplicits(newItem, copyEldritchImpl
16171617
end
16181618

16191619
-- harvest and heist enchantments on modifiable body armour or weapons
1620-
if newItem.base.weapon or newItem.base.type == "Body Armour"
1621-
and (#newItem.enchantModLines == 0 or overwrite)
1622-
and self.activeItemSet[newItemType].selItemId > 0
1623-
and modifiableItem and currentItem.enchantModLines
1624-
then
1625-
newItem.enchantModLines = currentItem.enchantModLines
1620+
if (newItem.base.weapon or newItem.base.type == "Body Armour") and (#newItem.enchantModLines == 0 or overwrite) and self.activeItemSet[newItemType].selItemId > 0 and modifiableItem and currentItem.enchantModLines then
1621+
newItem.enchantModLines = currentItem.enchantModLines
16261622
end
16271623

16281624
newItem:BuildAndParseRaw()

0 commit comments

Comments
 (0)