From 50ce8e8198b04d27763829d1a0b3835f926175e3 Mon Sep 17 00:00:00 2001 From: resetes12 <67122715+resetes12@users.noreply.github.com> Date: Fri, 31 Mar 2023 09:41:43 +0200 Subject: [PATCH] FLY two times in party menu fix --- Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them.md b/Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them.md index fe3ef64..06d9574 100644 --- a/Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them.md +++ b/Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them.md @@ -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);