- Pokémon Essentials Version
- v19.1 ➖
Note: This exploit is no longer possible in Essentials v20.
Find this section in Item_Utilities:
Ruby:
def pbRaiseHappinessAndLowerEV(pkmn,scene,stat,messages)
h = pkmn.happiness<255
e = pkmn.ev[stat]>0
if !h && !e
scene.pbDisplay(_INTL("It won't have any effect."))
return false
end
if h
pkmn.changeHappiness("evberry")
end
if e
pkmn.ev[stat] -= 10
pkmn.ev[stat] = 0 if pkmn.ev[stat]<0
pkmn.calc_stats
end
scene.pbRefresh
scene.pbDisplay(messages[2-(h ? 0 : 2)-(e ? 0 : 1)])
return true
end
Right underneath pkmn.calc_stats, add this line:
Ruby:
pkmn.hp += 1 if pkmn.hp == 0
That's it! Now, if a Pokemon's HP hits 0 because of the Pomeg Berry, it'll instead be left at 1!
- Credits
- None needed.