Welcome to the PokéCommunity!

Hi there! Thanks for visiting PokéCommunity. We’re a group of Pokémon fans dedicated to providing the best place on the Internet for discussing ideas and sharing fan-made content. Welcome! We’re glad you’re here.

In order to join our community we need you to create an account with us. Doing so will allow you to make posts, submit and view fan art and fan fiction, download fan-made games, and much more. It’s quick and easy; just click here and follow the instructions.

Pokémon Sun and Moon are now available! Read our extensive Sun and Moon review at Daily!

The finale of the fourth annual Favorite Pokémon Tournament is underway in Pokémon General!View the poll and vote for as many Pokémon as you'd like. Voting is only open until the 5th of December though, so don't wait to make your picks!

Research & DevelopmentGot a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

Research & Development programs in this forum are subject to moderator approval before they are displayed.

Brief Intro

The Pomeg Glitch is a glitch exclusive to Emerald. Since the Pomeg Berry usually lowers HP by 2, if used on a 1-HP Pokémon (Shedinja aside), the HP stat of the Pokémon could become -1, which the game interprets as 65535 (but displayed as "?35" because the game wasn't intended to display such high values).

Description

Here's a part of the routine coming from Emerald US v1.0:

Code:

08068fd2 2900 cmp r1, #0x0
08068fd4 d104 bne $08068fe0

Those two lines basically check the Pokémon's HP and in case it's fainted, the HP won't decrease at all. Which makes sense, but that's where the glitch come from. Checking if the HP value is 0x0 is not enough, indeed. We need to make sure it is at least greater than 0x2 before decreasing HP, which will be also useful to prevent the Pokémon to get knocked out after using a Pomeg Berry on it:

There's a problem with the fix - it means that the Pomeg Berry will be unusable on Shedinja. This is especially problematic, as HP EVs are useless on it and therefore people will want to remove them.

Is it not possible to, after the HP reducing routine completes, check whether the HP is larger than the Pokémon's max HP, and if so, reduce it to 0? It would be more complex than your current method, but more effective.

You can't use a Pomeg Berry on a Pokémon with less than 3HP, so if your Pokémon is somehow weakened in battle, you'll have to heal it first.
Does the game check for your Pokémon fainting upon using a Pomeg Berry (i.e. sending you to a Pokémon Center if its HP is reduced to 0)? I seem to recall that it doesn't; in that case, using a Pomeg Berry on a high-leveled Pokémon with 3HP remaining may reduce the HP to 0, allowing you to battle without any non-fainted Pokémon in your party. If it does, ignore that part :P

You can't use a Pomeg Berry on a Pokémon with less than 3HP, so if your Pokémon is somehow weakened in battle, you'll have to heal it first.
Does the game check for your Pokémon fainting upon using a Pomeg Berry (i.e. sending you to a Pokémon Center if its HP is reduced to 0)? I seem to recall that it doesn't; in that case, using a Pomeg Berry on a high-leveled Pokémon with 3HP remaining may reduce the HP to 0, allowing you to battle without any non-fainted Pokémon in your party. If it does, ignore that part :P

No, no, no. You can use the Pomeg Berry on a Pokémon with less than 3 HP. However, it won't cause any HP decreasing.

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.╠══End of File══╣
Awaiting user input...

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.╠══End of File══╣
Awaiting user input...

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.╠══End of File══╣
Awaiting user input...

Help

The PokéCommunity

Meta

Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, or The Pokémon Company International. We just love Pokémon.