mirror of
https://github.com/pret/pokeyellow.git
synced 2026-05-09 12:22:04 -05:00
29 lines
437 B
NASM
Executable File
29 lines
437 B
NASM
Executable File
MtMoon3Script_4a325: ; pikachu-related function?
|
|
ld a, [wd472]
|
|
bit 7, a
|
|
ret z
|
|
ld a, [wWalkBikeSurfState]
|
|
and a
|
|
ret nz
|
|
|
|
push hl
|
|
push bc
|
|
callab GetPikachuFacingDirectionAndReturnToE
|
|
pop bc
|
|
pop hl
|
|
ld a, b
|
|
cp e
|
|
ret nz
|
|
|
|
push hl
|
|
ld a, [wUpdateSpritesEnabled]
|
|
push af
|
|
ld a, $ff
|
|
ld [wUpdateSpritesEnabled], a
|
|
callab LoadPikachuShadowIntoVRAM
|
|
pop af
|
|
ld [wUpdateSpritesEnabled], a
|
|
pop hl
|
|
call ApplyPikachuMovementData
|
|
ret
|