summaryrefslogtreecommitdiff
path: root/engine/battle/core.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/core.asm')
-rwxr-xr-xengine/battle/core.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 01074b74..3957795b 100755
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -2710,6 +2710,14 @@ SelectMenuItem:
jp nz, SelectMenuItem_CursorDown ; down
bit 2, a
jp nz, SwapMovesInMenu ; select
+IF DEF(_DEBUG)
+ bit BIT_START, a
+ jp nz, Func_3d4f5
+ bit BIT_D_RIGHT, a
+ jp nz, Func_3d529
+ bit BIT_D_LEFT, a
+ jp nz, Func_3d523
+ENDC
bit 1, a ; B, but was it reset above?
push af
xor a
@@ -2904,6 +2912,11 @@ NoMovesLeftText:
text_end
SwapMovesInMenu:
+IF DEF(_DEBUG)
+ ld a, [wFlags_D733]
+ bit BIT_TEST_BATTLE, a
+ jp nz, Func_3d4f5
+ENDC
ld a, [wPlayerBattleStatus3]
bit TRANSFORMED, a
jp nz, MoveSelectionMenu