HackMew
Mewtwo Strikes Back
- 1,314
- Posts
- 18
- Years
- Seen Oct 26, 2011
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:
[div="font-family:consolas, courier new,monospace"]08068fd2 2900 cmp r1, #0x0
08068fd4 d104 bne $08068fe0[/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:
Code:
[div="font-family:consolas, courier new,monospace"]08068fd2 2902 cmp r1, #0x2
08068fd4 dc04 bgt $08068fe0[/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
Code:[div="font-family:consolas,courier new,monospace"]0x68FD2[/div]
This research document is Copyright © 2010 by HackMew.
You are not allowed to copy, modify or distribute it without permission.
Last edited: