mirror of
https://github.com/pret/pokecrystal.git
synced 2026-09-12 19:35:19 -05:00
Restore CheckTypeMatchup bug description
This commit is contained in:
@@ -1390,6 +1390,8 @@ AI_Cautious:
|
||||
|
||||
### AI makes a false assumption about `CheckTypeMatchup`
|
||||
|
||||
There is an incorrect assumption about this function made in the AI related code: when the AI calls CheckTypeMatchup (not BattleCheckTypeMatchup), it assumes that placing the offensive type in a will make this function do the right thing. Since a is overwritten, this assumption is incorrect. A simple fix would be to load the move type for the current move into a in BattleCheckTypeMatchup, before falling through, which is consistent with how the rest of the code assumes this code works like.
|
||||
|
||||
**Fix:** Edit `BattleCheckTypeMatchup` in [engine/battle/effect_commands.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/effect_commands.asm):
|
||||
|
||||
```diff
|
||||
|
||||
Reference in New Issue
Block a user