Document AI_Smart_Conversion2 bug (resolves #786)

This commit is contained in:
Rangi 2020-12-07 13:13:03 -05:00
parent b1d04e4ed1
commit 4ef556cbc8
2 changed files with 15 additions and 1 deletions

View File

@ -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):

View File

@ -1667,7 +1667,7 @@ AI_Smart_Thief:
AI_Smart_Conversion2:
ld a, [wLastPlayerMove]
and a
jr nz, .discourage
jr nz, .discourage ; should be jr z
push hl
dec a