Commit 042211f
Fix Heraldry not granting Exposure to enemies (#9179)
* Fix Heraldry not granting Exposure to enemies
With my change in #9173, I moved the place in the file where EnemyModifiers were calculated but didn't realise that they also need to be recalculated later so that mods that rely on "AffectedBy" x still work
Changed it to use a cache so it doesn't duplicate earlier added mods
* Test for bug
* Fix test
* Enemy curse effect test
---------
Co-authored-by: LocalIdentity <[email protected]>1 parent ae2200a commit 042211f
File tree
2 files changed
+50
-6
lines changed- spec/System
- src/Modules
2 files changed
+50
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
556 | 588 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
570 | 574 | | |
571 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
| |||
579 | 588 | | |
580 | 589 | | |
581 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
582 | 594 | | |
583 | 595 | | |
584 | 596 | | |
| |||
1170 | 1182 | | |
1171 | 1183 | | |
1172 | 1184 | | |
1173 | | - | |
| 1185 | + | |
1174 | 1186 | | |
1175 | | - | |
| 1187 | + | |
1176 | 1188 | | |
1177 | | - | |
| 1189 | + | |
1178 | 1190 | | |
1179 | 1191 | | |
1180 | 1192 | | |
| |||
0 commit comments