Skip to content

Fix Waxen Soul shrine buff effect per Life Reserved not applying - #10486

Merged
Wires77 merged 1 commit into
PathOfBuildingCommunity:devfrom
lucaskarsten:fix/10189-shrine-life-reserved
Nov 19, 2026
Merged

Wires77 merged 1 commit into
PathOfBuildingCommunity:devfrom
lucaskarsten:fix/10189-shrine-life-reserved

Conversation

@lucaskarsten

Copy link
Copy Markdown
Contributor

Fixes #10189

Description of the problem being solved:

Waxen Soul's "2% increased Effect of Shrine Buffs on you for each 5% of Life Reserved" is parsed as ShrineBuffEffect INC with a PerStat LifeReservedPercent tag, but it always evaluated to 0. There were two separate causes:

  1. ModStore:GetStat("LifeReservedPercent") only handled the per-skill case added for Farewell to Flesh (Add support for "Farewell to Flesh" (Lycia Bloodline Herald Ascendancy Node) #9108), which looks up the reserving skill named in cfg. With no matching skill (or no cfg, as in the shrine Sum), it returned 0 instead of falling through to output.LifeReservedPercent. It now returns the per-skill value when a matching reserving skill is found, and the actor's total Life reserved otherwise. The Herald path is unchanged.
  2. Shrine buffs were applied in doActorAttribsConditions, before skill reservations were calculated, so output.LifeReservedPercent did not exist yet. The shrine block is moved into doActorShrineBuffs(actor, stage):
    • Massive and Lesser Massive Shrine still apply before the life pool, because they add Life (stage "life"). Their effect therefore can't include the reservation bonus, since reservation depends on Life.
    • Every other shrine applies right after doActorLifeManaReservation (stage "rest"), before charges, auras, curses and the overcapped-lightning-res pass that read their mods.
    • Non-player actors (minions) still apply everything at the old point (stage "all"), so their behaviour is unchanged.

The shrine bodies themselves are moved unchanged (git diff -w shows only the wrapper and the two call sites).

Steps taken to verify a working solution:

  • Added a test in TestItemMods_spec.lua. With the Acceleration Shrine and the Waxen Soul mod, ActionSpeedMod is 1.5 with no reservation and 1.6 with "Reserves 50% of Life" (10 × 2% = 20%, floor(50 × 1.2) = 60). On dev it stays at 1.5.
  • Each half alone still fails the test, so both changes are needed.
  • Full busted suite: 743 successes, 0 failures.
  • --tags=builds (the saved 3.13 builds): the same 900 failures, with identical messages, on dev and on this branch, so no saved-build output changed.

Link to a build that showcases this PR:

Waxen Soul + The Gull, Acceleration Shrine enabled, any life reservation (the issue's repro).

Before screenshot:

Acceleration Shrine with 50% of Life reserved: 50% increased Action Speed (no bonus).

After screenshot:

Same setup: 60% increased Action Speed.

ModStore:GetStat("LifeReservedPercent") only handled the per-skill Herald case and
returned 0 for global mods, and shrine buffs were applied before life reservation
was known. Massive Shrines stay before the life pool; the other shrines are now
applied after reservation.
@Wires77 Wires77 added the bug: calculation Numerical differences label Nov 19, 2026
@Wires77
Wires77 merged commit 691131a into PathOfBuildingCommunity:dev Nov 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: calculation Numerical differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shrine buff effect / reserved life mod does not function

2 participants