diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-07 13:13:03 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-07 13:13:03 -0500 |
| commit | 4ef556cbc83659683454f0bf4415af52e4371d56 (patch) | |
| tree | a8436df5fd1d575d4f8c96e2eaca07400258b4be /docs | |
| parent | b1d04e4ed1bf25ac8316f54c42cc07bacfdcccd4 (diff) | |
Document AI_Smart_Conversion2 bug (resolves #786)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bugs_and_glitches.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index 9b50f2a7e..93a458082 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -49,6 +49,7 @@ Fixes in the [multi-player battle engine](#multi-player-battle-engine) category - [Heavy Ball uses wrong weight value for three Pokémon](#heavy-ball-uses-wrong-weight-value-for-three-pokémon) - [Glacier Badge may not boost Special Defense depending on the value of Special Attack](#glacier-badge-may-not-boost-special-defense-depending-on-the-value-of-special-attack) - ["Smart" AI encourages Mean Look if its own Pokémon is badly poisoned](#smart-ai-encourages-mean-look-if-its-own-pokémon-is-badly-poisoned) + - ["Smart" AI discourages Conversion2 after the first turn](#smart-ai-discourages-conversion2-after-the-first-turn) - [AI makes a false assumption about `CheckTypeMatchup`](#ai-makes-a-false-assumption-about-checktypematchup) - [AI use of Full Heal or Full Restore does not cure Nightmare status](#ai-use-of-full-heal-or-full-restore-does-not-cure-nightmare-status) - [AI use of Full Heal does not cure confusion status](#ai-use-of-full-heal-does-not-cure-confusion-status) @@ -1054,6 +1055,19 @@ As Pryce's dialog ("That BADGE will raise the SPECIAL stats of POKéMON.") impli ``` +### "Smart" AI discourages Conversion2 after the first turn + +**Fix:** Edit `AI_Smart_Conversion2` in [engine/battle/ai/scoring.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/ai/scoring.asm): + +```diff + AI_Smart_Conversion2: + ld a, [wLastPlayerMove] + and a +- jr nz, .discourage ; should be jr z ++ jr z, .discourage +``` + + ### AI makes a false assumption about `CheckTypeMatchup` **Fix:** Edit `BattleCheckTypeMatchup` in [engine/battle/effect_commands.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/effect_commands.asm): |
