summaryrefslogtreecommitdiff
path: root/src/field/daycare.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-15 18:59:30 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-15 18:59:30 -0500
commitce391ed0696c22e8fa1f33430b4025a08a3bc360 (patch)
treedbdd06262cd738bb682d8a9304293ac5d944a071 /src/field/daycare.c
parentbdb0628c913fe7f2e77598d6390f8f7d951b1703 (diff)
parented152b1566fa5c39ee72ca190c49fbfe30708036 (diff)
Merge branch 'master' of https://github.com/pret/pokeruby into fixes
Diffstat (limited to 'src/field/daycare.c')
-rw-r--r--src/field/daycare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/field/daycare.c b/src/field/daycare.c
index 7e4530906..36dd7ec03 100644
--- a/src/field/daycare.c
+++ b/src/field/daycare.c
@@ -557,7 +557,7 @@ void BuildEggMoveset(struct Pokemon *egg, struct BoxPokemon *father, struct BoxP
{
for (j = 0; j < NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES; j++)
{
- if (gHatchedEggFatherMoves[i] == ItemIdToBattleMoveId(ITEM_TM01 + j) && CanMonLearnTMHM(egg, j))
+ if (gHatchedEggFatherMoves[i] == ItemIdToBattleMoveId(ITEM_TM01_FOCUS_PUNCH + j) && CanMonLearnTMHM(egg, j))
{
if (GiveMoveToMon(egg, gHatchedEggFatherMoves[i]) == 0xffff)
DeleteFirstMoveAndGiveMoveToMon(egg, gHatchedEggFatherMoves[i]);