Farigh / pokeclicker-automation

An automation script suite for pokeclicker.com
GNU General Public License v3.0
38 stars 21 forks source link

Focus.Pokérus: Does not take weather into account #239

Closed unproductivityfriendly closed 1 year ago

unproductivityfriendly commented 1 year ago

Describe the bug

When using Pokérus cure as focus, it does not take weather into account. I get stuck on Hoenn Route 119 as it tries to hunt a Castform not available with the current weather.

Steps to Reproduce

  1. Have a Contagious Castform form
  2. Make sure the current weather will not make that form appear
  3. Select Pokérus cure as Focus and turn it On

Expected behavior

Should take the weather into account, and go look for an other route that has available pokémon to hunt.

Additional context

In the screenshot, you can see that the route has currently no contagious pokémon, but the focus is still on this route.

image

Farigh commented 1 year ago

Do you happen to have a save reproducing the problem ? I'm not there yet and I'm not sure I'll be able to address this issue without being able to do proper testing.

Farigh commented 1 year ago

I pushed bugfix/fixup-focus-pokeruscure-selecting-road-with-no-available-pokemon with what a think could be the problem if you can test it (changing master to bugfix/fixup-focus-pokeruscure-selecting-road-with-no-available-pokemon in the releaseLabel variable of the loader)

Farigh commented 1 year ago

I managed to reproduce by forging a save reproducing your problem.

This should now work properly.