pokecrystal-board/engine/battle/returntobattle_useball.asm
2024-02-11 00:16:00 +01:00

20 lines
408 B
NASM

_ReturnToBattle_UseBall:
call ClearBGPalettes
call ClearTilemap
ld a, [wBattleType]
cp BATTLETYPE_TUTORIAL
jr z, .gettutorialbackpic
farcall GetBattleMonBackpic
jr .continue
.gettutorialbackpic
farcall GetTrainerBackpic
.continue
farcall GetEnemyMonFrontpic
farcall _LoadBattleFontsHPBar
call GetMemCGBLayout
call CloseWindow
call LoadStandardMenuHeader
call WaitBGMap
jp SetDefaultBGPAndOBP