Pomeg glitch: Difference between revisions

 
Line 6: Line 6:
For example, if a Pokémon with 8 HP EVs currently has 1 HP out of a maximum of 300, 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 298. 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 (two bytes) and be displayed as "?35" as well as the HP bar showing the incorrect amount in percent.
For example, if a Pokémon with 8 HP EVs currently has 1 HP out of a maximum of 300, 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 298. 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 (two bytes) 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 4 or more 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. The Pomeg glitch does not occur in {{game|HeartGold and SoulSilver|s}} as the current HP will no longer change if it would not exceed the reduced maximum 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 4 or more current HP and 116 or more HP EVs. When a Pomeg Berry is consumed with more than 110 HP 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. The Pomeg glitch does not occur in {{game|HeartGold and SoulSilver|s}} or [[Generation V]] as the current HP will no longer change if it would not exceed the reduced maximum HP. In addition, in Generation V, the behavior of the Berries reducing EVs was reverted to always reducing EVs by up to 10, even if it had more than 110 EVs on that particular stat.
 
In [[Generation V]] EV Berries always decrease EVs by 10, and will no longer decrease EVs by more than 10 if the Pokémon has over 100 EVs, making the Pomeg glitch unusable.


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".
2,381

edits