Skip to content

Commit 92fa93a

Browse files
author
LocalIdentity
committed
Fix Foulborn Dialla's Malefaction not importing gems in correct order
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
1 parent 63a4005 commit 92fa93a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Classes/ImportTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
11261126
itemSocketGroupList[groupID] = { label = "", enabled = true, gemList = { }, slot = slotName }
11271127
end
11281128
local socketGroup = itemSocketGroupList[groupID]
1129-
if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and item.title ~= "Dialla's Malefaction" then
1129+
if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and not item.title:match("Dialla's Malefaction") then
11301130
-- If the first gemInstance is a support gemInstance, put the first active gemInstance before it
11311131
t_insert(socketGroup.gemList, 1, gemInstance)
11321132
else

src/Classes/ItemsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
35993599
end
36003600

36013601
if flavourTable then
3602-
if item.title == "Grand Spectrum" then
3602+
if item.title:match("Grand Spectrum") then
36033603
local selectedFlavourId = nil
36043604
for _, lineEntry in ipairs(tooltip.lines or {}) do
36053605
local lineText = lineEntry.text or ""

src/Classes/PassiveTreeView.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
795795
local outerSize = radData.outer * scale
796796
local innerSize = radData.inner * scale * 1.06
797797
SetDrawColor(1,1,1,0.7)
798-
if jewel.title == "Impossible Escape" then
798+
if jewel.title:match("Impossible Escape") then
799799
-- Impossible Escape ring shows on the allocated Keystone
800800
for keystoneName, _ in pairs(jewel.jewelData.impossibleEscapeKeystones) do
801801
local keystone = spec.tree.keystoneMap[keystoneName]

src/Modules/CalcTriggers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ local function defaultTriggerHandler(env, config)
693693
end
694694

695695
if env.player.mainSkill.activeEffect.grantedEffect.name == "Doom Blast" and env.build.configTab.input["doomBlastSource"] == "vixen" then
696-
if not env.player.itemList["Gloves"] or env.player.itemList["Gloves"].title ~= "Vixen's Entrapment" then
696+
if not env.player.itemList["Gloves"] or not env.player.itemList["Gloves"].title:match("Vixen's Entrapment") then
697697
output.VixenModeNoVixenGlovesWarn = true
698698
end
699699

0 commit comments

Comments
 (0)