Skip to content

Add an Inverted Hits ailment calculation mode - #10598

Open
zubSero wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/10525-inverted-hit-ailments
Open

zubSero wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
zubSero:fix/10525-inverted-hit-ailments

Conversation

@zubSero

@zubSero zubSero commented Nov 26, 2026 •

Copy link
Copy Markdown

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:

  • Added tests that compare the mode against a 100% chance to invert, check that the sidebar and Calcs give the same ailment stats, and check that Ignite and Poison are the same as in Average.
  • Average and Crits Only give the same output as on dev.
  • Arc with a 50% chance to invert against a Pinnacle boss: 10% Shock on Average, 12% on Inverted Hits.

Not checked in game. It follows the inversion maths PoB already has.

Before screenshot:

Average mode, 10% Shock on a Pinnacle boss

After screenshot:

Inverted Hits mode, 12% Shock on a Pinnacle boss

Reuse the hit resistance and penetration rules for the alternate breakdown. Keep regular DPS and the calculation mode used by automatic estimates chance-weighted.
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 zubSero changed the title Show ailments from inverted hits in Calcs Add an Inverted Hits ailment calculation mode Nov 27, 2026
@zubSero
zubSero force-pushed the fix/10525-inverted-hit-ailments branch from ad84c4c to ebd55a3 Compare November 27, 2026 11:15
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.

Ailment calculation with "resistance inversion"

1 participant