Repository navigation
Conversation
A custom jewel with the "Passives in radius of <Keystone>" mod but no Radius line has no jewelRadiusIndex, so NodesInIntuitiveLeapLikeRadius passed nil to pairs and the build could no longer be loaded.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10011.
Description of the problem being solved:
The jewel in the attached build is a custom Cobalt Jewel with only the line "Passive Skills in radius of Roiling Tempest can be allocated without being connected to your tree". Roiling Tempest is on the 3.29 tree, so the keystone name was fine. The problem is that the item has no "Radius:" line, so it has no jewel radius. When the tree rebuilt its paths, NodesInIntuitiveLeapLikeRadius looked up the keystone's nodes for a nil radius and called pairs on nil. The error repeats every time the build loads, so the saved build could not be opened.
I made that lookup check for missing radius data the same way the other Impossible Escape lookups in PassiveSpec already do. A jewel without a radius, or one that names a keystone that is not on the tree, now just has no effect instead of erroring. The real Impossible Escape has a Small radius (https://poedb.tw/us/Impossible_Escape) and still works as before.
Steps taken to verify a working solution:
Link to a build that showcases this PR:
The xirgil bond.xml build attached to the issue.
Before screenshot:
After screenshot: