Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where maximum Life could be negative #3908

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

Lothrik
Copy link
Contributor

@Lothrik Lothrik commented Jan 18, 2022

Fixes #3734.

Description of the problem being solved:

Players can get negative maximum Life modifiers on Scourged items. With enough of these items equipped PoB throws various different errors and fails to load the build. PoE handles this by enforcing a lower bound of 1 for player maximum Life, and this PR adds the same functionality to PoB.

Link to a build that showcases this PR:

https://pastebin.com/KqPukQKa

Before screenshot:

After screenshot:

@Lothrik Lothrik added the bug Something isn't working label Jan 18, 2022
Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Wires77 Wires77 changed the title Prevent maximum Life from going below 1 Fix bug where maximum Life could be negative Jan 21, 2022
@Wires77 Wires77 merged commit d0bd6e9 into PathOfBuildingCommunity:dev Jan 21, 2022
@Lothrik Lothrik deleted the fix-negative-life-bug branch January 21, 2022 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants