pmariglia / showdown

A Pokemon Showdown Battle Bot written in Python
GNU General Public License v3.0
261 stars 178 forks source link

Bot uses ground move on pokemon with levitate #47

Closed link-discord closed 3 years ago

link-discord commented 4 years ago

I had a pokemon with earthquake and it used earthquake on a rotom with levitate but all the next turns it used that same move again and again and again even though the other pokemon had levitate

link-discord commented 4 years ago

Add a check if the pokemon has the levitate ability and then prevent it from choosing a ground type move

pmariglia commented 4 years ago

Do you have a log of the battle? It's really hard to say what the bot was thinking in your particular scenario without one.

Logic to identify that earthquake does nothing against levitate is definitely implemented in the engine. Here is a test for that scenario.

Unless there is a bug setting the levitate ability, which I cannot determine without a battle-log, what likely happened is that for whatever reason the minimax algorithm saw earthquake was the best move. This is a feature - not a bug.

Its bad, for sure. But I never claimed that this bot was the best :)

pmariglia commented 3 years ago

Closing for now. If you have logs showing something wrong with the bot please feel free to re-open