Skip to content

Fix Rathpith magnitude of Ailments per 100 Life not scaling Ailments properly#2364

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:rathpith-fix
Jul 12, 2026
Merged

Fix Rathpith magnitude of Ailments per 100 Life not scaling Ailments properly#2364
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:rathpith-fix

Conversation

@vaisest

@vaisest vaisest commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #2362.

Description of the problem being solved:

The rathpith per 100 life shock mod wasn't working because the output had no life, and possibly because the code was incorrectly accessing skillCfg, which was always nil.

Steps taken to verify a working solution:

  • Tests pass
  • Mod works

Link to a build that showcases this PR:

https://poe.ninja/poe2/pob/24c22

Before screenshot:

image

After screenshot:

image

@@ -3265,9 +3268,9 @@ function calcs.perform(env, skipEHP)
-- if not, use the generic modifiers
-- Scorch/Sap/Brittle do not have guaranteed sources from hits, and therefore will only end up in this bit of code if it's not supposed to apply the skillModList, which is bad
if ailment ~= "Scorch" and ailment ~= "Sap" and ailment ~= "Brittle" and not env.player.mainSkill.skillModList:Flag(nil, "Cannot"..ailment) and hitFlag and modDB:Flag(nil, "ChecksHighestDamage") then

@vaisest vaisest Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not really sure what is going on here. I couldn't track down the original intent because these lines have been edited multiple times. The blocks are the same for both paths

@LocalIdentity LocalIdentity changed the title Fix rathpith per 100 life shock mod Fix Rathpith magnitude of Ailments per 100 Life not scaling Shock Jul 12, 2026
@LocalIdentity LocalIdentity added the bug: behaviour Behavioral differences label Jul 12, 2026
In PR PathOfBuildingCommunity#1034 I changed the handling of the Rathpith mods so that they used ModFlag.Spell instead of Keyword flag
That broke the handling of the ailments line though as it uses dotCfg and we specifically strip out the ModFlag.Spell from it so it doesn't get scaled by spell damage. This also stopped the Ailment mod from working though
I made it use it's own full parsed line to be simpler and still use KeywordFlag so that the interaction works and the breakdown does too
Also added a case so we don't accidentally break this down the line
@LocalIdentity LocalIdentity changed the title Fix Rathpith magnitude of Ailments per 100 Life not scaling Shock Fix Rathpith magnitude of Ailments per 100 Life not scaling Ailments properly Jul 12, 2026
@LocalIdentity LocalIdentity merged commit 063f09b into PathOfBuildingCommunity:dev Jul 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: behaviour Behavioral differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rathpith cultivated mod not fully working

2 participants