From 9b437a99b341012fd9d5e57ceb34365b3201c36a Mon Sep 17 00:00:00 2001 From: Jaizu Date: Fri, 18 Feb 2022 16:03:57 +0100 Subject: [PATCH] Use TM constant in CanMonLearnTMTutor --- src/party_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/party_menu.c b/src/party_menu.c index ba8eb47fc4..348b0ef8ea 100755 --- a/src/party_menu.c +++ b/src/party_menu.c @@ -1962,7 +1962,7 @@ static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor) if (item >= ITEM_TM01) { - if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? 50 : 0))) + if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? NUM_TECHNICAL_MACHINES : 0))) return CANNOT_LEARN_MOVE; else move = ItemIdToBattleMoveId(item);