pokecrystal-board/engine/battle/returntobattle_useball.asm

20 lines
408 B
NASM
Raw Normal View History

_ReturnToBattle_UseBall: ; 2715c
call ClearBGPalettes
call ClearTileMap
2018-01-23 14:39:09 -08:00
ld a, [wBattleType]
cp BATTLETYPE_TUTORIAL
jr z, .gettutorialbackpic
farcall GetBattleMonBackpic
jr .continue
.gettutorialbackpic
farcall GetTrainerBackpic
.continue
farcall GetEnemyMonFrontpic
farcall _LoadBattleFontsHPBar
call GetMemSGBLayout
call CloseWindow
call LoadStandardMenuHeader
call WaitBGMap
jp SetPalettes