Jump to content

Catch rate glitches (Generation II): Difference between revisions

no edit summary
>Sherkel
No edit summary
>Sherkel
No edit summary
Line 15:
.done
 
What the code does is set a value increasing catch rate (referred to as "a" in Bulbapedia's explanation, linked below) to 10 if the opponent is asleep or frozen, and do nothing otherwise. The "andnext a"few islines are presumably intended to read from WildPokemonStatus and set the value to 5 if there is a different status condition present; however, the "jr nz" preceding it prevents this from being able to occur, as WildPokemonStatus will not be 0.
 
One possible fix would be modifying the code to the following:
Line 30:
.done
 
This would instead jump to ".done" ifset c was 0, indicating no status condition present, and instead set it to 5 if the opponent was inflicted by a status condition thatbut wasnot asleep of frozen before notjumping to ".done", rather than sleepdoing orso freezeprematurely.
 
==See also==
* [https://bulbapedia.bulbagarden.net/wiki/Catch_rate#Capture_method_.28Generation_II.29 Bulbapedia's article on catch rate]
 
==Attriution==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.