Skip to content

Commit

Permalink
Merge pull request #2413 from kaisermg5/fix_tmhm_lock
Browse files Browse the repository at this point in the history
Fix lock when teaching a TM/HM after learning a move by level up.
  • Loading branch information
AsparagusEduardo authored Oct 27, 2022
2 parents 449f4c0 + 2cd0a0f commit 93dd878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/party_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4928,6 +4928,7 @@ void ItemUseCB_TMHM(u8 taskId, TaskFunc task)
u16 move = ItemIdToBattleMoveId(item);

gPartyMenu.data1 = move;
gPartyMenu.learnMoveState = 0;

PlaySE(SE_SELECT);
mon = &gPlayerParty[gPartyMenu.slotId];
Expand Down

0 comments on commit 93dd878

Please sign in to comment.