PDA

View Full Version : I'm Fixin' It: The Pomeg Glitch


HackMew
February 2nd, 2010, 06:50 AM
Brief Intro
The Pomeg Glitch (http://bulbapedia.bulbagarden.net/wiki/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:

[css-div="font-family:consolas, courier new,monospace"]08068fd2 2900 cmp r1, #0x0
08068fd4 d104 bne $08068fe0[/css-div]

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:

[css-div="font-family:consolas, courier new,monospace"]08068fd2 2902 cmp r1, #0x2
08068fd4 dc04 bgt $08068fe0[/css-div]

So, all you have to do is to replace 00 29 04 D1 with 02 29 04 DC.

The Offsets



Emerald US v1.0

[css-div="font-family:consolas,courier new,monospace"]0x68FD2[/css-div]



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

Tropical Sunlight
February 2nd, 2010, 07:16 AM
Whoa, there's a glitch like that? :D
Gotta try it out!

Wichu
February 2nd, 2010, 07:22 AM
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
February 2nd, 2010, 07:51 AM
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.

Wichu
February 2nd, 2010, 08:09 AM
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...

HackMew
February 2nd, 2010, 08:12 AM
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
February 2nd, 2010, 08:51 AM
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
February 2nd, 2010, 09:57 AM
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
February 4th, 2010, 09:11 AM
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.

HackMew
February 4th, 2010, 09:40 AM
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
February 4th, 2010, 09:42 AM
I have exploited this glitch before, it was funny...

HackMew
February 4th, 2010, 04:04 PM
I have exploited this glitch before, it was funny...

Yeah, I guess. But I don't see how Shedinja would help.

0m3GA ARS3NAL
February 4th, 2010, 10:46 PM
Just for kicks, and showing off...

NatureKeeper
March 27th, 2010, 08:10 PM
That's pretty good. Nice how Nintendo fails and ASM fixes that.
Pretty good. Too bad I am not hacking Emerald...

Pingouin_7
March 28th, 2010, 10:59 AM
Aww, I liked that glitch.

Except you don't need to download the fix.

jshann04
April 30th, 2010, 06:34 PM
Yeah, I guess. But I don't see how Shedinja would help.



It is the fact that shedinja stops any non-super-effective moves from doing any damage, but can only have 1 max hp ever. Any true hit would kill it, unless you use that glitch to give it godly hp.