mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-09 19:46:27 -05:00
Merge pull request #2677 from AlexOn1ine/z_moves_switch_order
Fix switching Z-Moves when pressing SELECT in battle
This commit is contained in:
@@ -882,6 +882,7 @@ static void HandleMoveSwitching(void)
|
||||
|
||||
if (JOY_NEW(A_BUTTON | SELECT_BUTTON))
|
||||
{
|
||||
struct ChooseMoveStruct *moveInfo = (struct ChooseMoveStruct *)(&gBattleResources->bufferA[gActiveBattler][4]);
|
||||
PlaySE(SE_SELECT);
|
||||
|
||||
if (gMoveSelectionCursor[gActiveBattler] != gMultiUsePlayerCursor)
|
||||
@@ -973,6 +974,7 @@ static void HandleMoveSwitching(void)
|
||||
MoveSelectionDisplayPpString();
|
||||
MoveSelectionDisplayPpNumber();
|
||||
MoveSelectionDisplayMoveType();
|
||||
GetUsableZMoves(gActiveBattler, moveInfo->moves);
|
||||
}
|
||||
else if (JOY_NEW(B_BUTTON | SELECT_BUTTON))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user