Merge pull request #2032 from LOuroboros/patch-3
Tweaked CanMonLearnTMTutor
This commit is contained in:
commit
0eb1c2c858
1 changed files with 1 additions and 3 deletions
|
@ -1962,9 +1962,7 @@ static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor)
|
||||||
|
|
||||||
if (item >= ITEM_TM01)
|
if (item >= ITEM_TM01)
|
||||||
{
|
{
|
||||||
if (item > ITEM_TM50 && item < ITEM_HM01)
|
if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? 50 : 0)))
|
||||||
return CANNOT_LEARN_MOVE;
|
|
||||||
else if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? 50 : 0)))
|
|
||||||
return CANNOT_LEARN_MOVE;
|
return CANNOT_LEARN_MOVE;
|
||||||
else
|
else
|
||||||
move = ItemIdToBattleMoveId(item);
|
move = ItemIdToBattleMoveId(item);
|
||||||
|
|
Loading…
Reference in a new issue