erbkaiser / FrozenCookies

Messing with frozen cookies
33 stars 12 forks source link

Autobuy randomly breaks when wizard tower not unlocked #153

Closed azy2 closed 8 months ago

azy2 commented 8 months ago

If autobuy is left to run for a while it will sometimes fail with this message.

Uncaught TypeError: M is undefined
    autoCookie https://github.erbkaiser.com/FrozenCookies//fc_main.js?_=1702872680343:5800
fc_main.js:5800:36
    autoCookie https://github.erbkaiser.com/FrozenCookies//fc_main.js?_=1702872680343:5800

Digging into the code briefly it looks like M represents the wizard tower minigame which I do not have unlocked yet. Perhaps a nullcheck is needed here.

erbkaiser commented 8 months ago

Thanks for the report, should be fixed by the linked commit. I have let a new CC run until I unlocked WTs and the error did not occur.