Merge pull request #2413 from kaisermg5/fix_tmhm_lock

Fix lock when teaching a TM/HM after learning a move by level up.
This commit is contained in:
Eduardo Quezada D'Ottone 2022-10-26 22:27:19 -03:00 committed by GitHub
commit 93dd8786ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];