Pomeg glitch: Difference between revisions

→‎Performing the glitch: some reworking of the description.
mNo edit summary
(→‎Performing the glitch: some reworking of the description.)
Line 2: Line 2:


==Performing the glitch==
==Performing the glitch==
The Pomeg glitch involves using a [[Pomeg Berry]] to lower a Pokémon's maximum HP by 2 or more. To perform the glitch, the {{player}} must use a Pomeg Berry on a Pokémon to lower the HP when it is low. Since the Pomeg Berry lowers HP by 10 {{tt|or more|In Generation IV when HP EV's are above 100}} EV points, the HP stat of the Pokémon becomes for example -1, which the game interprets as 65,535 because the byte managing HP is unsigned (displayed as "?35"). In [[Generation IV]], the glitch still exists but must be performed on a Pokémon with greater than four health. (This is possible, because if the player exploits the glitch with a Pokémon which has over 100 EVs in HP, its EVs in HP will be reset to 100).
The Pomeg glitch involves using a [[Pomeg Berry]] to lower a Pokémon's maximum HP by 2 or more on a Pokémon whose current HP is already very low; because the Pokémon's current HP will be reduced by the same amount as their maximum HP, this can result in the Pokemon's HP dropping to a negative value, which (due to the [[wp:Unsigned_integer|unsigned]] manner in which this data is stored) the game interprets as a very high number; for example, if a Pokémon's current HP drops to -1, it will be interpreted as 65,535 and displayed as "?35".
 
In [[Generation IV]], the glitch still exists but must be performed on a Pokémon with greater than four current HP. (This is still possible if the Pokémon has over 100 EVs in HP, as the Berry will reduce their HP EV to 100; a Lv.50 Pokémon with 240 HP EVs would lose 120 EVs, or 15 HP).


==Sub-glitches==
==Sub-glitches==
597

edits