Repository navigation
Conversation
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
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 INCwith aPerStat LifeReservedPercenttag, but it always evaluated to 0. There were two separate causes: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 incfg. With no matching skill (or nocfg, as in the shrineSum), it returned 0 instead of falling through tooutput.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.doActorAttribsConditions, before skill reservations were calculated, sooutput.LifeReservedPercentdid not exist yet. The shrine block is moved intodoActorShrineBuffs(actor, stage):"life"). Their effect therefore can't include the reservation bonus, since reservation depends on Life.doActorLifeManaReservation(stage"rest"), before charges, auras, curses and the overcapped-lightning-res pass that read their mods."all"), so their behaviour is unchanged.The shrine bodies themselves are moved unchanged (
git diff -wshows only the wrapper and the two call sites).Steps taken to verify a working solution:
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). Ondevit stays at 1.5.--tags=builds(the saved 3.13 builds): the same 900 failures, with identical messages, ondevand 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.