Skip to content

Fix crash calculating secondary minion energy shield - #10571

Open
AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/minion-energy-shield-crash
Open

AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/minion-energy-shield-crash

Conversation

@AdamZ-8113

Copy link
Copy Markdown
Contributor

Fixes #10567

Description of the problem being solved:

6185c8c introduced an issue that would cause some builds to crash when calculating the life of a minion that takes damage before the player, such as the Void Spawns from Servant of Decay.

The energy shield calculation was looking at the selected main skill's minion instead of the minion being calculated. This changes it to use the correct minion and skill, while keeping the existing energy shield formula and spectre life table behavior.

The issue can also be reproduced on the current beta build by linking Companionship with a Golem and then selecting some other skill as your main skill. This happens because Companionship forces a defence calculation (some damage goes to the Golem) and with the Golem no longer selected as active, we get the crash. See 2nd build link for reference.

Steps taken to verify a working solution:

  • Tested against the build from the issue + the Companionship setup and confirmed it no longer crashes.
  • Added regression tests for a Void Spawn with a non-minion main skill, and for spectre and Void Spawn energy shield calculations.
  • Ran the full test suite: 930 tests passed.

Link to a build that showcases this PR:

https://pobb.in/fwuxkRpGKa69
https://pob.codes/b/JQX4AGpJCmc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing character fails after updating to 2.69.0

1 participant