Skip to content

Commit

Permalink
Fix Rangi42#899 auto scroll set to start closes move description.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjwilde committed Jan 30, 2024
1 parent d16b156 commit 0c5a9c8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5175,8 +5175,26 @@ MoveSelectionScreen:
call ClearSprites
pop hl
call BattleMoveDescTextbox
; check if autoscroll is set to start
ld a, [wOptions1]
; save options in b temporarily
ld b, a
and AUTOSCROLL_MASK
cp AUTOSCROLL_START
jp nz, .not_start
; if autoscroll on start set to none temporarily
xor a
ld [wOptions1], a
push bc
call WaitPressAorB_BlinkCursor
jr .start_over
pop bc
; reset options
ld a, b
ld [wOptions1], a
jp .start_over
.not_start
call WaitPressAorB_BlinkCursor
jp .start_over

SetChoiceLock:
; Set choice lock to move choice c (0-3)
Expand Down

0 comments on commit 0c5a9c8

Please sign in to comment.