diff options
Diffstat (limited to 'home/overworld.asm')
-rw-r--r-- | home/overworld.asm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/home/overworld.asm b/home/overworld.asm index a0d52843..1530f8b3 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -287,16 +287,11 @@ OverworldLoopLessDelay:: ; 0245 (0:0245) callab AnyPartyAlive ld a,d and a - jr z,.allPokemonFainted + jr z,AllPokemonFainted .noFaintCheck ld c,$0a call DelayFrames jp EnterMap -.allPokemonFainted -; ld a,$ff -; ld [W_ISINBATTLE],a -; call RunMapScript -; jp HandleBlackOut StepCountCheck:: ; 0457 (0:0457) ld a,[wd730] @@ -316,6 +311,12 @@ StepCountCheck:: ; 0457 (0:0457) .doneStepCounting ret +AllPokemonFainted:: ; 0475 (0:0475) + ld a,$ff + ld [W_ISINBATTLE],a + call RunMapScript + jp HandleBlackOut + ; function to determine if there will be a battle and execute it (either a trainer battle or wild battle) ; sets carry if a battle occurred and unsets carry if not NewBattle:: ; 0480 (0:0480) |