Commit d8c0b1d
authored
Fix max charge override being set during charge pre-pass (#9442)
* FIX: Charge max override being set during charge pre-pass
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.
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
* CHORE: add test
* FIX: duplicate function end in test
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
---------
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>1 parent 2825e29 commit d8c0b1d
2 files changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
588 | 615 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
901 | | - | |
902 | | - | |
| 900 | + | |
903 | 901 | | |
904 | 902 | | |
905 | 903 | | |
906 | 904 | | |
907 | 905 | | |
908 | 906 | | |
909 | | - | |
910 | | - | |
911 | | - | |
| 907 | + | |
912 | 908 | | |
913 | 909 | | |
914 | 910 | | |
| |||
0 commit comments