You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-12-11 05:02:16 -08:00
16 lines
249 B
NASM
Executable File
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
|