pret / pokecrystal

Disassembly of Pokémon Crystal
https://pret.github.io/pokecrystal/
2.11k stars 810 forks source link

Bug: `AI_Smart_Encore` can lead to incorrect type matchup checks #785

Open UnderscorePoY opened 4 years ago

UnderscorePoY commented 4 years ago

File : engine/battle/ai/scoring.asm (linked to Draft Pull Request #784)

The raw call to CheckTypeMatchup might have some oversights.

Example (not encoutered in vanilla) :

FredrIQ commented 3 years ago

I'm fairly sure that the AI in general assumes that SetEnemyTurn has been prepared, meaning that the problem here is Conversion2, not Encore?

rawr51919 commented 2 years ago

Wondering if the documentation from https://github.com/pret/pokecrystal/pull/656 fixed this originally

rawr51919 commented 2 years ago

Documented in #936, awaiting on a fix