From 239ebe9973d666f76353b00c7a015d8441151164 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada D'Ottone Date: Sun, 17 Apr 2022 09:17:52 -0400 Subject: [PATCH] Revert "Removed ternary from 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 409143777..5d0822df2 100755 --- a/src/party_menu.c +++ b/src/party_menu.c @@ -1961,7 +1961,7 @@ static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor) if (item >= ITEM_TM01) { - if (!CanMonLearnTMHM(mon, item - ITEM_TM01)) + if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? NUM_TECHNICAL_MACHINES : 0))) return CANNOT_LEARN_MOVE; else move = ItemIdToBattleMoveId(item);