I had a similar error after I messed around with the game and added my own mods. The mods were meant to change some mechanics, but I wasn’t careful with the files, and it ended up modifying part of the game’s code in one of the original scripts. Before that, I had been browsing reviews on somagyarkaszino, specifically checking out this one - https://somagyarkaszino.com/kaszino-velemenyek/mostbet-kaszino/. While reading, I noticed how the site described different reward mechanics and progression systems in casino games. That gave me the idea to try implementing a streak-based bonus system in Pokémon Reborn, where winning multiple battles in a row would increase the rewards, kind of like a progressive jackpot mechanic. Unfortunately, I didn't handle the script changes properly, and that’s probably what caused the error. If you’ve made any changes recently, it might be worth double-checking the files to see if something got unintentionally modified.