From 6ffdd3ef2098a77d6df57f3fa94a96df3efe34e7 Mon Sep 17 00:00:00 2001 From: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com> Date: Tue, 18 Nov 2025 14:26:13 +1100 Subject: [PATCH] Fix Foulborn Dialla's Malefaction not importing gems in correct order (#9280) The match for the name of the unique was looking for the exact match and broke when we had Foulborn in it Changed it to use match instead which fixes the issue Found a few other instances where we were doing exact name matches and changed them to use `match:` so they also don't run into a similar issue down the line Co-authored-by: LocalIdentity --- src/Classes/ImportTab.lua | 2 +- src/Classes/ItemsTab.lua | 2 +- src/Classes/PassiveTreeView.lua | 2 +- src/Modules/CalcTriggers.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Classes/ImportTab.lua b/src/Classes/ImportTab.lua index 2a634671..2dadf901 100644 --- a/src/Classes/ImportTab.lua +++ b/src/Classes/ImportTab.lua @@ -1126,7 +1126,7 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName) itemSocketGroupList[groupID] = { label = "", enabled = true, gemList = { }, slot = slotName } end local socketGroup = itemSocketGroupList[groupID] - if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and item.title ~= "Dialla's Malefaction" then + if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and not item.title:match("Dialla's Malefaction") then -- If the first gemInstance is a support gemInstance, put the first active gemInstance before it t_insert(socketGroup.gemList, 1, gemInstance) else diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 6018c27c..0aa26e47 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -3599,7 +3599,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode) end if flavourTable then - if item.title == "Grand Spectrum" then + if item.title:match("Grand Spectrum") then local selectedFlavourId = nil for _, lineEntry in ipairs(tooltip.lines or {}) do local lineText = lineEntry.text or "" diff --git a/src/Classes/PassiveTreeView.lua b/src/Classes/PassiveTreeView.lua index ddcbdfc0..996bed62 100644 --- a/src/Classes/PassiveTreeView.lua +++ b/src/Classes/PassiveTreeView.lua @@ -795,7 +795,7 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents) local outerSize = radData.outer * scale local innerSize = radData.inner * scale * 1.06 SetDrawColor(1,1,1,0.7) - if jewel.title == "Impossible Escape" then + if jewel.title:match("Impossible Escape") then -- Impossible Escape ring shows on the allocated Keystone for keystoneName, _ in pairs(jewel.jewelData.impossibleEscapeKeystones) do local keystone = spec.tree.keystoneMap[keystoneName] diff --git a/src/Modules/CalcTriggers.lua b/src/Modules/CalcTriggers.lua index 14ffc9ad..8f8e1116 100644 --- a/src/Modules/CalcTriggers.lua +++ b/src/Modules/CalcTriggers.lua @@ -693,7 +693,7 @@ local function defaultTriggerHandler(env, config) end if env.player.mainSkill.activeEffect.grantedEffect.name == "Doom Blast" and env.build.configTab.input["doomBlastSource"] == "vixen" then - if not env.player.itemList["Gloves"] or env.player.itemList["Gloves"].title ~= "Vixen's Entrapment" then + if not env.player.itemList["Gloves"] or not env.player.itemList["Gloves"].title:match("Vixen's Entrapment") then output.VixenModeNoVixenGlovesWarn = true end