From 43e0925f892ddbeff52f1cff7bfb8db7b013bb2e Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Tue, 27 May 2025 20:10:25 +1000 Subject: [PATCH] Fix Relic Flask's combining effect with unique flask of the same name Relic flasks were not being checked to also be unique when we merge the buff effects so they were duplicating Fixed for Tinctures too --- src/Modules/CalcPerform.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index 0f89c7ea7d..5f27cef2ba 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -1398,7 +1398,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) @@ -1410,7 +1410,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 = "" @@ -1422,7 +1422,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) @@ -1522,7 +1522,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 = ""