Skip to content

Fix rathpith per 100 life shock mod#2364

Open
vaisest wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
vaisest:rathpith-fix
Open

Fix rathpith per 100 life shock mod#2364
vaisest wants to merge 1 commit 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

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.

Rathpith cultivated mod not fully working

1 participant