Files
pokecrystal-board/engine/board/next_player_turn.asm

16 lines
249 B
NASM
Executable File

GotoNextPlayerScript::
callasm .RotateTurnPlayer
reloadmaptonextplayer
end
.RotateTurnPlayer:
ld hl, wNumLevelPlayers
ld a, [wCurTurnPlayer]
inc a
cp [hl]
jr c, .this_player_ok
xor a ; PLAYER_1
.this_player_ok
ld [wCurTurnPlayer], a
ret