shithub: pokecrystal

Download patch

ref: c7dee19a48f6ca91faf8961cac1ddc000e23835c
parent: 9801b93906befbd84cbf7dd333d59a95dd60ce0e
author: Rangi <[email protected]>
date: Wed Aug 31 13:56:00 EDT 2022

Match bug docs with source code

Fixes #997

--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -2437,14 +2437,7 @@
 **Fix:** Edit `CheckOwnMonAnywhere` in [engine/pokemon/search_owned.asm](https://github.com/pret/pokecrystal/blob/master/engine/pokemon/search_owned.asm):
 
 ```diff
- 	; If there are no monsters in the party,
- 	; the player must not own any yet.
 -; BUG: CheckOwnMon does not check the Day-Care (see docs/bugs_and_glitches.md)
- 	ld a, [wPartyCount]
- 	and a
- 	ret z
-
--; BUG: CheckOwnMon does not check the Day-Care (see docs/bugs_and_glitches.md)
 +	ld hl, wBreedMon1Species
 +	ld bc, wBreedMon1OT
 +	call CheckOwnMon
@@ -2454,6 +2447,11 @@
 +	ld bc, wBreedMon2OT
 +	call CheckOwnMon
 +	ret c ; found!
++
+ 	ld d, a
+ 	ld e, 0
+ 	ld hl, wPartyMon1Species
+ 	ld bc, wPartyMonOTs
 ```