party_menu fakematch fix
This commit is contained in:
parent
449df5860d
commit
f952144922
1 changed files with 7 additions and 9 deletions
|
@ -1964,19 +1964,17 @@ static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor)
|
|||
|
||||
if (item >= ITEM_TM01_FOCUS_PUNCH)
|
||||
{
|
||||
if (CanMonLearnTMHM(mon, item - ITEM_TM01_FOCUS_PUNCH))
|
||||
move = ItemIdToBattleMoveId(item);
|
||||
else
|
||||
if (!CanMonLearnTMHM(mon, item - ITEM_TM01_FOCUS_PUNCH))
|
||||
return CANNOT_LEARN_MOVE;
|
||||
do {} while (0); // :morphon:
|
||||
}
|
||||
else if (CanLearnTutorMove(GetMonData(mon, MON_DATA_SPECIES), tutor) == FALSE)
|
||||
{
|
||||
return CANNOT_LEARN_MOVE;
|
||||
else
|
||||
move = ItemIdToBattleMoveId(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
move = GetTutorMove(tutor);
|
||||
if (!CanLearnTutorMove(GetMonData(mon, MON_DATA_SPECIES), tutor))
|
||||
return CANNOT_LEARN_MOVE;
|
||||
else
|
||||
move = GetTutorMove(tutor);
|
||||
}
|
||||
|
||||
if (MonKnowsMove(mon, move) == TRUE)
|
||||
|
|
Loading…
Reference in a new issue