Skip to content

Commit

Permalink
Add fix documentation for battle transition empty party glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
TiKevin83 committed Oct 31, 2023
1 parent 613e1c6 commit 5f683cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/bugs_and_glitches.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ The Battle Transitions code has no error handling for this and reads wPartyMon1H
This means you can manipulate this first transition to be faster by choosing a default rival name or writing and deleting 6 characters in a custom rival name.
A similar series of bugs appears to exist in pokecrystal.

**Fix:** TBD in [engine/battle/battle_transitions.asm#L93](/engine/battle/battle_transitions.asm#L93)
**Fix:** Update [engine/battle/battle_transitions.asm#L93](/engine/battle/battle_transitions.asm#L93)

```diff
GetBattleTransitionID_CompareLevels:
+ ld a, [wPartyCount]
+ cp 0
+ jr z, .highLevelEnemy
ld hl, wPartyMon1HP
```


## `wPikachuFollowCommandBuffer` can overflow
Expand Down

0 comments on commit 5f683cf

Please sign in to comment.