bug: prestige fires multiple times simultaneously when upgrade is purchased during prestige window #248

Closed
opened 2026-04-13 09:08:28 -07:00 by hikari · 0 comments
Owner

Description

The prestige action fires multiple times in rapid succession when the player purchases an upgrade at the same moment the prestige prompt/notification is displayed. This results in:

  • Multiple Discord bot prestige announcements for the same player in quick succession
  • Multiple in-game prestige notifications
  • The prestige counter skipping numbers (e.g. jumping from 49 → 51, or showing the same prestige number 3–5 times in a row)
  • The player receiving significantly more runestones than the stated per-prestige reward (due to multiple prestige awards stacking)

Steps to Reproduce

  1. Reach the prestige threshold
  2. While the prestige notification/prompt is visible, purchase an upgrade
  3. Observe multiple prestige events firing simultaneously

Expected Behaviour

Prestige should fire exactly once per threshold crossing, regardless of other UI interactions happening at the same time.

Actual Behaviour

Prestige fires 2–5+ times in rapid succession. The Discord bot posts multiple announcements, the in-game notification fires repeatedly, the prestige count increments inconsistently, and runestone rewards are multiplied.

Notes

Likely a race condition — purchasing an upgrade triggers a state update that re-evaluates the prestige condition while a prestige is already in progress. A mutex/lock or in-progress flag around the prestige flow should prevent re-entry.

Reported By

ilenia (Discord) — 2026-04-07

This issue was created with help from Hikari~ 🌸

## Description The prestige action fires multiple times in rapid succession when the player purchases an upgrade at the same moment the prestige prompt/notification is displayed. This results in: - Multiple Discord bot prestige announcements for the same player in quick succession - Multiple in-game prestige notifications - The prestige counter skipping numbers (e.g. jumping from 49 → 51, or showing the same prestige number 3–5 times in a row) - The player receiving significantly more runestones than the stated per-prestige reward (due to multiple prestige awards stacking) ## Steps to Reproduce 1. Reach the prestige threshold 2. While the prestige notification/prompt is visible, purchase an upgrade 3. Observe multiple prestige events firing simultaneously ## Expected Behaviour Prestige should fire exactly once per threshold crossing, regardless of other UI interactions happening at the same time. ## Actual Behaviour Prestige fires 2–5+ times in rapid succession. The Discord bot posts multiple announcements, the in-game notification fires repeatedly, the prestige count increments inconsistently, and runestone rewards are multiplied. ## Notes Likely a race condition — purchasing an upgrade triggers a state update that re-evaluates the prestige condition while a prestige is already in progress. A mutex/lock or in-progress flag around the prestige flow should prevent re-entry. ## Reported By ilenia (Discord) — 2026-04-07 ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-04-13 09:50:21 -07:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#248