From 99962bd308837cde94f2c6973ef41398eb16bc54 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Tue, 27 May 2025 20:18:39 +1000 Subject: [PATCH] Fix some Relic items not counting as Unique Same fix from PoB 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding/pull/8610 Also applies to charms for PoE 2 and the Lich jewel socket in-case PoE 2 ever adds relic items --- src/Classes/ItemsTab.lua | 2 +- src/Modules/CalcPerform.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 7f007ede4f..cc200e275e 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1816,7 +1816,7 @@ function ItemsTabClass:IsItemValidForSlot(item, slotName, itemSet) if not node or item.type ~= "Jewel" then return false elseif node.containJewelSocket then - if item.rarity == "UNIQUE" or (item.base and item.base.subType ~= nil) then + if item.rarity == "UNIQUE" or item.rarity == "RELIC" or (item.base and item.base.subType ~= nil) then -- Lich socket can only accept basic non-unique jewels -- Need to change this to use ModParser if GGG add different conditional ascendancy jewel sockets return false diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index b39faa7e60..e596702532 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -1275,7 +1275,7 @@ function calcs.perform(env, skipEHP) mergeBuff(srcList, flaskBuffs, baseName) mergeBuff(srcList, flaskBuffsPerBase[item.baseName], baseName) end - if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE")) then + if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE" and item.rarity ~= "RELIC")) then srcList = new("ModList") srcList:ScaleAddList(buffModList, effectModNonPlayer) mergeBuff(srcList, flaskBuffsNonPlayer, baseName) @@ -1287,7 +1287,7 @@ function calcs.perform(env, skipEHP) local srcList = new("ModList") srcList:ScaleAddList(modList, effectMod) local key - if item.rarity == "UNIQUE" then + if item.rarity == "UNIQUE" or item.rarity == "RELIC" then key = item.title else key = "" @@ -1299,7 +1299,7 @@ function calcs.perform(env, skipEHP) mergeBuff(srcList, flaskBuffs, key) mergeBuff(srcList, flaskBuffsPerBase[item.baseName], key) end - if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE")) then + if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE" and item.rarity ~= "RELIC")) then srcList = new("ModList") srcList:ScaleAddList(modList, effectModNonPlayer) mergeBuff(srcList, flaskBuffsNonPlayer, key) @@ -1398,7 +1398,7 @@ function calcs.perform(env, skipEHP) local srcList = new("ModList") srcList:ScaleAddList(modList, effectMod) local key - if item.rarity == "UNIQUE" then + if item.rarity == "UNIQUE" or item.rarity == "RELIC" then key = item.title else key = ""