Skip to content

Commit 5696105

Browse files
LocalIdentityLocalIdentity
andauthored
Fix some Relic items not counting as Unique (#1143)
Same fix from PoB 1 PathOfBuildingCommunity/PathOfBuilding#8610 Also applies to charms for PoE 2 and the Lich jewel socket in-case PoE 2 ever adds relic items Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 0612ba0 commit 5696105

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Classes/ItemsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ function ItemsTabClass:IsItemValidForSlot(item, slotName, itemSet)
18161816
if not node or item.type ~= "Jewel" then
18171817
return false
18181818
elseif node.containJewelSocket then
1819-
if item.rarity == "UNIQUE" or (item.base and item.base.subType ~= nil) then
1819+
if item.rarity == "UNIQUE" or item.rarity == "RELIC" or (item.base and item.base.subType ~= nil) then
18201820
-- Lich socket can only accept basic non-unique jewels
18211821
-- Need to change this to use ModParser if GGG add different conditional ascendancy jewel sockets
18221822
return false

src/Modules/CalcPerform.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ function calcs.perform(env, skipEHP)
12751275
mergeBuff(srcList, flaskBuffs, baseName)
12761276
mergeBuff(srcList, flaskBuffsPerBase[item.baseName], baseName)
12771277
end
1278-
if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE")) then
1278+
if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE" and item.rarity ~= "RELIC")) then
12791279
srcList = new("ModList")
12801280
srcList:ScaleAddList(buffModList, effectModNonPlayer)
12811281
mergeBuff(srcList, flaskBuffsNonPlayer, baseName)
@@ -1287,7 +1287,7 @@ function calcs.perform(env, skipEHP)
12871287
local srcList = new("ModList")
12881288
srcList:ScaleAddList(modList, effectMod)
12891289
local key
1290-
if item.rarity == "UNIQUE" then
1290+
if item.rarity == "UNIQUE" or item.rarity == "RELIC" then
12911291
key = item.title
12921292
else
12931293
key = ""
@@ -1299,7 +1299,7 @@ function calcs.perform(env, skipEHP)
12991299
mergeBuff(srcList, flaskBuffs, key)
13001300
mergeBuff(srcList, flaskBuffsPerBase[item.baseName], key)
13011301
end
1302-
if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE")) then
1302+
if (not onlyRecovery or checkNonRecoveryFlasksForMinions) and (flasksApplyToMinion or quickSilverAppliesToAllies or (nonUniqueFlasksApplyToMinion and item.rarity ~= "UNIQUE" and item.rarity ~= "RELIC")) then
13031303
srcList = new("ModList")
13041304
srcList:ScaleAddList(modList, effectModNonPlayer)
13051305
mergeBuff(srcList, flaskBuffsNonPlayer, key)
@@ -1398,7 +1398,7 @@ function calcs.perform(env, skipEHP)
13981398
local srcList = new("ModList")
13991399
srcList:ScaleAddList(modList, effectMod)
14001400
local key
1401-
if item.rarity == "UNIQUE" then
1401+
if item.rarity == "UNIQUE" or item.rarity == "RELIC" then
14021402
key = item.title
14031403
else
14041404
key = ""

0 commit comments

Comments
 (0)