pokecrystal-board/engine/battle/check_battle_scene.asm

13 lines
145 B
NASM

CheckBattleScene:
; Return carry if battle scene is turned off.
ld a, [wOptions]
bit BATTLE_SCENE, a
jr nz, .off
and a
ret
.off
scf
ret