Skip to content

Conversation

@Paliak
Copy link
Contributor

@Paliak Paliak commented Jan 30, 2026

Closes #9431

Description of the problem being solved:

After #7186 doActorCharges is ran early to supply charge data to other logic in CalcPerform.lua #7328 added an extra override to improve max charge count display causing the pre-pass to set the override which is then not overwritten during the main charge calculation pass. This means that conditional maximum charge mods such as "+1 to Maximum Frenzy Charges while affected by Grace" which rely on conditions set after the charge pre-pass were not accounted for in the main pass. This pr simply uses the ReplaceMod function to replace the max charges override mod during the last/main pass.

Steps taken to verify a working solution:

  • Test cases mentioned in the issue

Link to a build that showcases this PR:

See issue

After PathOfBuildingCommunity#7186 doActorCharges is ran early to supply charge data to other
logic in CalcPerform.lua PathOfBuildingCommunity#7328 added an extra override to improve max
charge count display causing the pre pass to set the override which is
then not overwritten during the main charge calculation pass. This means
that conditional maximum charge mods such as "+1 to Maximum Frenzy Charges while affected by
Grace" which rely on conditions set after the charge pre-pass were not
accounted for in the main pass. This pr simply uses the ReplaceMod
function to replace the max charges override mod during the last/main
pass.

Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
@Paliak Paliak added the bug: behaviour Behavioral differences label Jan 30, 2026
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
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.

Charge override not counting conditionals such from Sublime Vision

1 participant