I put the number of battles variable at the start of the day, so a bug may occur if you haven’t slept at all since loading after the update.