Skip to content

Commit 75fab68

Browse files
LocalIdentityLocalIdentity
andauthored
Fix legacy cursse cluster not appearing on tree sometimes (#9141)
Another JIT 2.1 pairs issue Legacy curse small clusters and medium cluster both have a mod with the same same mod name so when we iterate over all the enchants in ModParser line 5966, it depends on which jewel size is handled last which affects what the `jewelData.clusterJewelSkill` value is. The old handling expected medium jewels to run last so it would only change the name when using a small jewel Co-authored-by: LocalIdentity <[email protected]>
1 parent 3f21f4d commit 75fab68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Classes/Item.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,8 +1582,10 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
15821582

15831583
-- Small and Medium Curse Cluster Jewel passive mods are parsed the same so the medium cluster data overwrites small and the skills differ
15841584
-- This changes small curse clusters to have the correct clusterJewelSkill so it passes validation below and works as expected in the tree
1585-
if jewelData.clusterJewelSkill == "affliction_curse_effect" and jewelData.clusterJewelNodeCount and jewelData.clusterJewelNodeCount < 4 then
1585+
if self.clusterJewel.size == "Small" and jewelData.clusterJewelSkill == "affliction_curse_effect" then
15861586
jewelData.clusterJewelSkill = "affliction_curse_effect_small"
1587+
elseif self.clusterJewel.size == "Medium" and jewelData.clusterJewelSkill == "affliction_curse_effect_small" then
1588+
jewelData.clusterJewelSkill = "affliction_curse_effect"
15871589
end
15881590

15891591
-- Validation

0 commit comments

Comments
 (0)