You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
endloop
loops back to critical itself
The comments seemed to specify that `endloop` loops back to the command before `critical` and executes that, which simply isn't true. It loops back to `critical` itself, and executes `critical`, before continuing on with the remaining commands.
This commit is contained in:
@@ -5651,7 +5651,7 @@ CheckPlayerHasMonToSwitchTo: ; 36994
|
|||||||
BattleCommand_EndLoop: ; 369b6
|
BattleCommand_EndLoop: ; 369b6
|
||||||
; endloop
|
; endloop
|
||||||
|
|
||||||
; Loop back to the command before 'critical'.
|
; Loop back to 'critical'.
|
||||||
|
|
||||||
ld de, wPlayerRolloutCount
|
ld de, wPlayerRolloutCount
|
||||||
ld bc, wPlayerDamageTaken
|
ld bc, wPlayerDamageTaken
|
||||||
@@ -5766,7 +5766,6 @@ BattleCommand_EndLoop: ; 369b6
|
|||||||
ld [bc], a
|
ld [bc], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; Loop back to the command before 'critical'.
|
|
||||||
.loop_back_to_critical
|
.loop_back_to_critical
|
||||||
ld a, [wBattleScriptBufferAddress + 1]
|
ld a, [wBattleScriptBufferAddress + 1]
|
||||||
ld h, a
|
ld h, a
|
||||||
|
Reference in New Issue
Block a user