Repository navigation
Conversation
initMinionModDB read the main skill's minion (env.minion) when computing base Energy Shield. Since it is also called for minions used as an ally Life pool, this crashed when the main skill had no minion, and used the wrong level otherwise. Fixes PathOfBuildingCommunity#10642.
2 tasks done
Contributor
|
This is a duplicate of #10571 |
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 #10642.
Description of the problem being solved:
Since 2.69.0, PoB crashes with
CalcPerform.lua:1205: attempt to index field 'minion' (a nil value)when a minion with Energy Shield is used as an ally Life pool and the main skill has no minion. In the issue that's a Chaos Golem supported by Companionship next to Herald of Agony, with Poisonous Concoction as the main skill. Hovering a gem's enabled checkbox or removing a gem runs that calculation, and so does loading the saved build.initMinionModDBalso runs for minions used as an ally Life pool, but #9816 changed its Energy Shield lines to readenv.minion(the main skill's minion) instead of the localminion. Without a main skill minion that crashes. With one, the pool minion got its Energy Shield from the wrong minion's level and life table. A Chaos Golem next to a level 1 Raise Zombie main skill ended up with 20 Energy Shield instead of 2039.The lines now use the minion being initialised and its own skill. For the main skill minion nothing changes, since it is the same minion there.
Steps taken to verify a working solution:
Link to a build that showcases this PR:
https://pobb.in/TTIp6NA6Vt5U