Commit f242004
committed
Fix RotationCount being invalidated when Mystery Raids are inserted
When a Mystery Raid was created and inserted into the ActiveRaids list,
it would shift all raids at or after the insertion position. If RotationCount
pointed to a raid at or after this position, it would end up pointing to the
wrong raid (typically the newly inserted Mystery Raid instead of the intended
configured raid).
Changes:
- Adjust RotationCount after inserting a Mystery Raid if insertion happens at or before current position
- Add logging to track when RotationCount is adjusted
This ensures the "Next Raid Up" embed matches what actually gets played.1 parent b2c7dc2 commit f242004
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
1722 | 1729 | | |
1723 | 1730 | | |
1724 | 1731 | | |
| |||
0 commit comments