New version with an important bug fix #2
bumbleshoot
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just released a new version of Automate Habitica, which contains an important bug fix. Everyone using Automate Habitica should update it to the newest version.
The bug
Habitica stores the date & time of the user's last cron in a variable called
lastCron
, which Automate Habitica uses to determine when to auto cast certain skills. However, I noticed Automate Habitica was casting the "after cron" skills not only after cron, but also at random times throughout the day. I determined that the "after cron" skills were also being cast whenever I updated my day start time. Turns out thelastCron
variable is updated whenever the user crons OR updates their day start time. I updated Automate Habitica to use theloggedin
variable instead of thelastCron
variable, becauseloggedin
is updated whenever the user crons, but not whenever they update their day start time.Beta Was this translation helpful? Give feedback.
All reactions