Pomeg glitch: Difference between revisions

m
→‎Performing the glitch: the bar also wraps due to an overflow to calculate the percentage
No edit summary
m (→‎Performing the glitch: the bar also wraps due to an overflow to calculate the percentage)
Line 5: Line 5:
The Pomeg glitch involves using a [[Pomeg Berry]] on a Pokémon whose current HP is very low. The Pomeg Berry lowers the HP {{EV}}s of a Pokémon by 10 in [[Generation III]]. Since every 4 EVs is equivalent to 1 HP (at level 100), the Pokémon's HP will decrease with each Pomeg Berry used, as long as the Pokémon has 4 or more EVs in HP. In this way, it is possible to lower the Pokémon's current HP to 0 (without causing it to faint) or a negative number.
The Pomeg glitch involves using a [[Pomeg Berry]] on a Pokémon whose current HP is very low. The Pomeg Berry lowers the HP {{EV}}s of a Pokémon by 10 in [[Generation III]]. Since every 4 EVs is equivalent to 1 HP (at level 100), the Pokémon's HP will decrease with each Pomeg Berry used, as long as the Pokémon has 4 or more EVs in HP. In this way, it is possible to lower the Pokémon's current HP to 0 (without causing it to faint) or a negative number.


For example, if a Pokémon with 8 HP EVs currently has 1 HP out of a maximum of 100, using a Pomeg Berry will decrease the EVs to 0. As a result, the Pokémon should lose 2 HP and have a current HP of -1 and a maximum of 98. However, due to the [[wp:Unsigned integer|unsigned]] manner in which this data is stored, the game interprets a negative number as a very high number; therefore, if a Pokémon's current HP drops to -1, it will be interpreted as 65,535 and be displayed as "?35".
For example, if a Pokémon with 8 HP EVs currently has 1 HP out of a maximum of 100, using a Pomeg Berry will decrease the EVs to 0. As a result, the Pokémon should lose 2 HP and have a current HP of -1 and a maximum of 98. However, due to the [[wp:Unsigned integer|unsigned]] manner in which this data is stored, the game interprets a negative number as a very high number; therefore, if a Pokémon's current HP drops to -1, it will be interpreted as 65,535 and be displayed as "?35" as well as the HP bar showing the incorrect amount in percent.


In [[Generation IV]], the glitch was partially corrected so that a Pomeg Berry could not glitch a Pokémon with 3 or fewer HP (a Pomeg Berry will usually decrease a Pokémon's HP by 2). However, the glitch still exists but must be performed on a Pokémon with greater than 4 current HP and 116 or more HP EVs. When a Pomeg Berry is consumed with more than 100 EVs, it resets the EVs to 100. With an EV total of 116, the Pokémon would lose at least 4 HP to reach 0 current HP.  
In [[Generation IV]], the glitch was partially corrected so that a Pomeg Berry could not glitch a Pokémon with 3 or fewer HP (a Pomeg Berry will usually decrease a Pokémon's HP by 2). However, the glitch still exists but must be performed on a Pokémon with greater than 4 current HP and 116 or more HP EVs. When a Pomeg Berry is consumed with more than 100 EVs, it resets the EVs to 100. With an EV total of 116, the Pokémon would lose at least 4 HP to reach 0 current HP.  
Line 12: Line 12:


The player can undo the effects by simply healing in a [[Pokémon Center]] or using a [[Revive]] when the HP goes back to 0 after using a healing item during which the HP is at "?35".
The player can undo the effects by simply healing in a [[Pokémon Center]] or using a [[Revive]] when the HP goes back to 0 after using a healing item during which the HP is at "?35".
==Sub-glitches==
==Sub-glitches==
Several other glitches derive from the Pomeg glitch, such as the ability to battle with an Egg, battling with no Pokémon at all, or battling for an unlimited amount of times. Other than Eruption/Water Spout related sub-glitch, these cannot be performed in {{game|Ruby and Sapphire|s}}.
Several other glitches derive from the Pomeg glitch, such as the ability to battle with an Egg, battling with no Pokémon at all, or battling for an unlimited amount of times. Other than Eruption/Water Spout related sub-glitch, these cannot be performed in {{game|Ruby and Sapphire|s}}.
74

edits