Merge pull request #2096 from rh-hideout/revert-2095-CanMonLearnTMTutor

Revert "Removed ternary from CanMonLearnTMTutor"
This commit is contained in:
ghoulslash 2022-05-07 11:31:48 -04:00 committed by GitHub
commit 5dae95d8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1961,7 +1961,7 @@ static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor)
if (item >= ITEM_TM01) 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; return CANNOT_LEARN_MOVE;
else else
move = ItemIdToBattleMoveId(item); move = ItemIdToBattleMoveId(item);