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 <localidentity2@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user