Advertiser Content

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
13.5 Years

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:

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:

08068fd2 2902 cmp r1, #0x2 08068fd4 dc04 bgt $08068fe0
So, all you have to do is to replace 00 29 04 D1 with 02 29 04 DC.

The Offsets


  • Emerald US v1.0

    0x68FD2

This research document is Copyright © 2010 by HackMew.
You are not allowed to copy, modify or distribute it without permission.

Wichu

Project Amethyst

Age 26
Female
Seen April 6th, 2019
Posted November 28th, 2010
2,052 posts
12.3 Years
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.

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
13.5 Years
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.
The Pomeg Berry is useless on Shedinja anyway, fix or not. Shedinja's HP EVs cannot increase.

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
13.5 Years
Wow, I never knew that. Still, it's a bit inconvenient to have to heal your Pokémon before using a Pomeg berry on it...
What are you talking about? o_O

Wichu

Project Amethyst

Age 26
Female
Seen April 6th, 2019
Posted November 28th, 2010
2,052 posts
12.3 Years
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

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
13.5 Years
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.

0m3GA ARS3NAL

Im comin' home...

Age 27
Male
Superjail Penitentiary
Seen October 4th, 2015
Posted September 12th, 2013
1,816 posts
11.9 Years
Aww, I liked that glitch. I used to do it on my shedinja in my emerald cart to do some legit cheating. lol, I love bug expliots.
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

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...

>

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
13.5 Years
Aww, I liked that glitch. I used to do it on my shedinja in my emerald cart to do some legit cheating. lol, I love bug expliots.
What do you mean, exactly?

0m3GA ARS3NAL

Im comin' home...

Age 27
Male
Superjail Penitentiary
Seen October 4th, 2015
Posted September 12th, 2013
1,816 posts
11.9 Years
I have exploited this glitch before, it was funny...
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

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...

>

0m3GA ARS3NAL

Im comin' home...

Age 27
Male
Superjail Penitentiary
Seen October 4th, 2015
Posted September 12th, 2013
1,816 posts
11.9 Years
Just for kicks, and showing off...
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

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...

>

luuma

searching for Meaning, offering HA numel

Age 23
Male
Stage Left
Seen November 8th, 2018
Posted August 16th, 2018
157 posts
6 Years
Bumping for usefulness, but I should also clarify for the third time in this thread that you can't use the glitch on shedinja, it has no hp evs.


anyway nobody in this thread is listing the actual side effect of this fix: it prevents poison's tick damage at 2hp and lower

That's it. besides that, this fix is fully functional and there are no issues with it that the player is likely to encounter.
Play Altered Emerald here!

Thanks to DizzyEgg and the EBEU team for the battle engine, features, and dynamic expansion, lu-ho for a-map, gamer2020 for pge, Microsoft Windows for Task Manager, about 5 different hex editors, Chaos rush for sprites and an animation disable tutorial, Spherical Ice for several excellent asm routines, Neon Skylar for Pokemon data past gen 3, YAPE while it lasted, Scizz, Knizz, darthatron's numerous tools, hackmew, Chronosplit and yall for playing.

Altered Emerald is off on break for a bit now. This patch is looking really nice and polished, so it's staying up for a while.

ThomasWinwood

Age 31
Male
Seen 12 Hours Ago
Posted 3 Weeks Ago
87 posts
6.1 Years
Bumping to make sure everyone knows not to use this, because it breaks things.

The Pomeg Berry is useless on Shedinja anyway, fix or not. Shedinja's HP EVs cannot increase.
Bumping for usefulness, but I should also clarify for the third time in this thread that you can't use the glitch on shedinja, it has no hp evs.
Shedinja cannot gain HP EVs, but it can have HP EVs because it copies Nincada's EVs on evolution, including HP.
The rival in Red and Blue is called Green. Gary is some character from a lame cartoon.
Advertiser Content