Arrowgene.DragonsDogmaOnline
Arrowgene.DragonsDogmaOnline copied to clipboard
Revival timer resets across channels due to storing time in memory
Describe the bug The revival timer code in #497 is based on a 24hr timer written when channels were not implemented. As the last revival time is stored in memory, rather than the DB, it is possible to switch channels in order to refresh your revivals.
To Reproduce Steps to reproduce the behavior:
- Expend the revival charges
- Refill at Ophelia
- Switch channel
- Expend revival charges
- Refill at Ophelia, despite having done so already within 24hrs
Expected behavior Players should have their last revival time stored within the DB - allowing their timer to be tracked cross-channel and prevent extra revives.
Additional context
User reports:
https://discord.com/channels/1106677075668123791/1109057435169214525/1280631050673979512
https://discord.com/channels/1106677075668123791/1109057435169214525/1280635950334218281