Skip to content

Implement basic support for PoE2 triggers - #2589

Open
vaisest wants to merge 16 commits into
PathOfBuildingCommunity:devfrom
vaisest:trigger-test
Open

vaisest wants to merge 16 commits into
PathOfBuildingCommunity:devfrom
vaisest:trigger-test

Conversation

@vaisest

@vaisest vaisest commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

This PR replaces large parts of the obsolete PoB1 code with implementations for meta triggers and a port of the default trigger handler from PoB1, which should cover quite a few cases while actually working with PoB2. Mirages are still unsupported. Invocations were not considered here.

Currently, this has configurations for:

  • Cast on Crit
  • Cast on Melee hit (Thundergod and Smith of Kitava)
  • Cast on Block
  • Cast on Charm Use (this one is just basically config rate)
  • Elemental Expression
  • Elemental Storm
  • Hollow Resonance
  • Cast on Elemental Ailment

Additionally, this PR fixes some related issues:

  • Shock chance not being calculated after mitigation
  • Ignite chance not accounting for flammability
  • Fake hits not being accounted for. This mostly adds exclusions to hit-based code for them. Triggers like CoC are also blocked for them, and e.g. Incinerate's energy less mod is taken into account. Skills like Incinerate are still largely unsupported and need a follow-up PR to fix them as the current code clearly doesn't model them accurately.

Feedback is very welcome.

Steps taken to verify a working solution:

  • Verified against wiki information (some of which had info clarified by LocalIdentity recently)
  • Automated tests added
  • Tested with builds from ninja

Link to a build that showcases this PR:

https://poe.ninja/poe2/pob/2bf20 coc

https://poe.ninja/poe2/pob/2bf22 cod (note that EF is not properly supported here)

Before screenshot:

N/A

After screenshot:

image image image image image

@vaisest

vaisest commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

I tried adding a port of most of the relevant PoB1 code in e6d9406. Hopefully this can be used to implement most of the non-meta gem triggers that don't require handling energy. This seems to work fine so far, but I left a bunch of untested possibly relevant in the future code in. Still, seems better than the previous state of guaranteed to not work code

- avoid discarding excess energy as freeze chance can massively skew results otherwise
- fix ignite not accounting for flammability
- fix shock being calculated before resistances
Most of the logic is the same as CoEA. This just wires it up, adds support for the mod lines and energy mechanics.
@vaisest
vaisest marked this pull request as draft December 1, 2026 05:42
- use real dodge roll calculation instead of wonky config option
- correct freeze rate calcs to account for it being able to stack
- fix flammability double counting last hit
- fix full dps cache
- fix cast on block not working with full dps
@vaisest
vaisest marked this pull request as ready for review December 2, 2026 16:49
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.

1 participant