diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-04-03 01:05:44 +0200 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-04-04 22:40:26 +0200 |
commit | c1e3d17769aa3088556dcd1142944541f7f6fd0e (patch) | |
tree | f6ff0d417672e7b11a528f23fdd376e258be0abd | |
parent | 682ca7e93c635b21b7ac3db709ba6296c53fa080 (diff) |
`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.
-rw-r--r-- | engine/battle/effect_commands.asm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm index 9433c33b4..16b3cea9a 100644 --- a/engine/battle/effect_commands.asm +++ b/engine/battle/effect_commands.asm @@ -5651,7 +5651,7 @@ CheckPlayerHasMonToSwitchTo: ; 36994 BattleCommand_EndLoop: ; 369b6 ; endloop -; Loop back to the command before 'critical'. +; Loop back to 'critical'. ld de, wPlayerRolloutCount ld bc, wPlayerDamageTaken @@ -5766,7 +5766,6 @@ BattleCommand_EndLoop: ; 369b6 ld [bc], a ret -; Loop back to the command before 'critical'. .loop_back_to_critical ld a, [wBattleScriptBufferAddress + 1] ld h, a |