Catch rate glitches (Generation II): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Sherkel
(Created page with "In {{GSC}}, if the opposing Pokémon's catch rate is not affected if it is burned, poisoned, or paralyzed, despite those conditions increasing catch rate in other generations...")
 
>Sherkel
No edit summary
Line 17: Line 17:
What the code does is set a value increasing catch rate to 10 if the opponent is asleep or frozen, and do nothing otherwise. The "and a" is presumably intended to read from WildPokemonStatus and set the value to 5 if there is a different status condition; however, the "jr nz" preceding it prevents this from being able to occur, as WildPokemonStatus will not be 0.
What the code does is set a value increasing catch rate to 10 if the opponent is asleep or frozen, and do nothing otherwise. The "and a" is presumably intended to read from WildPokemonStatus and set the value to 5 if there is a different status condition; however, the "jr nz" preceding it prevents this from being able to occur, as WildPokemonStatus will not be 0.


A simple fix would be modifying the code to the following:
One possible fix would be modifying the code to the following:


ld b, a
ld b, a
Line 33: Line 33:


==Attriution==
==Attriution==
* IIMarckus for discovery, in addition to everyone who helped with [https://github.com/pret/pokegold pokegold] and [https://github.com/pret/pokecrystal pokecrystal].
* IIMarckus for discovery and the corrected code, in addition to everyone who helped with [https://github.com/pret/pokegold pokegold] and [https://github.com/pret/pokecrystal pokecrystal].


[[Category:Generation II glitches]]
[[Category:Generation II glitches]]