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 several bugs with infinite EHP and wrong phys max hit #8495

Merged

Conversation

Edvinas-Smita
Copy link
Contributor

Closes #8488
Closes #8475

Description of the problem being solved:

Infinite EHP was sometimes caused by floating point precision errors while calculating taking damage to life with life loss prevention.
A case of wrong max hit was caused by taking 0 damage to a bypassed pool (phys taken as chaos with CI)
A case of wrong max hit was caused by max hit approximation partially failing to account for life loss prevention.

Link to a build that showcases this PR:

https://pobb.in/DKadd4WhKVpp
https://pobb.in/6L8vQXyO3YWQ

Before screenshot:

image
image

After screenshot:

image
image

@Wires77 Wires77 changed the title Fixed some bugs with infinite EHP and wrong phys max hit Fix several bugs with infinite EHP and wrong phys max hit Feb 20, 2025
@Wires77 Wires77 merged commit 4236d88 into PathOfBuildingCommunity:dev Feb 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants