mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 09:24:19 +01:00
party_menu fakematch fix
This commit is contained in:
parent
449df5860d
commit
f952144922
@ -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…
x
Reference in New Issue
Block a user