FLY two times in party menu fix

resetes12 2023-03-31 09:41:43 +02:00
parent 0d9087e652
commit 50ce8e8198
1 changed files with 1 additions and 1 deletions

@ -318,7 +318,7 @@ index eef081849..920f672a8 100755
{
- AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + MENU_FIELD_MOVES);
+ // If Mon already knows FLY and the HM is in the bag, prevent it from being added to action list
+ if (sFieldMoves[j] != MOVE_FLASH || !CheckBagHasItem(ITEM_HM05_FLASH, 1)){
+ if (sFieldMoves[j] != MOVE_FLY || !CheckBagHasItem(ITEM_HM02_FLY, 1)){
+ // If Mon already knows FLASH and the HM is in the bag, prevent it from being added to action list
+ if (sFieldMoves[j] != MOVE_FLASH || !CheckBagHasItem(ITEM_HM05_FLASH, 1)){
+ AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + MENU_FIELD_MOVES);