Repository navigation
Conversation
Reuse the hit resistance and penetration rules for the alternate breakdown. Keep regular DPS and the calculation mode used by automatic estimates chance-weighted.
1 task done
The mode was limited to the Calcs environment, so the sidebar calculation could disagree with Calcs about whether a skill Shocks or Freezes. It now applies wherever ailments are calculated; hit damage keeps its chance weighting. When an inverted hit deals no damage that can inflict an ailment, the rows stay visible for the note and now carry the duration and effect an ordinary hit shows, instead of a 0s duration. Breakdowns state the mode that was actually used: Poison and non-damaging ailments the skill cannot invert say Average Damage with a note, and the config tooltip explains that Ignite, Bleed and Poison are based on damage before resistances. Tests compare against the certain-inversion case instead of fixed percentages.
zubSero
force-pushed
the
fix/10525-inverted-hit-ailments
branch
from
November 27, 2026 11:15
ad84c4c to
ebd55a3
Compare
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 #10525.
Description of the problem being solved:
With a chance to invert enemy resistance, PoB weights the inverted and the normal hits together when it works out Shock, Chill and the other non-damaging ailments. The issue asks for a way to see what an inverted hit does on its own.
This adds "Inverted Hits" to the "Ailment calculation mode" option. With it selected, non-damaging ailments and the Freeze threshold are based on a hit that inverts every resistance it can. Damage types the skill can't invert use their average.
Hit damage keeps its normal chance weighting. Ignite, Bleed and Poison don't change either, because they are based on damage before enemy resistances. The Poison breakdown says so when the mode is selected.
The mode applies everywhere, so the sidebar and Calcs agree.
Steps taken to verify a working solution:
Not checked in game. It follows the inversion maths PoB already has.
Before screenshot:
After screenshot: