Fixed roamers despawn without catch/defeat/flee

This commit is contained in:
JappaWakka 2024-02-18 09:42:33 +01:00
parent f49eba341e
commit 8b483a636b
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ nextIndex:
'Shift the Roaming Pokemon.
If RoamingBattle = True Then
If FieldEffects.RoamingFled = False AndAlso Battle.Fled = False Then
If FieldEffects.RoamingFled = False AndAlso Battle.Fled = False AndAlso OppPokemon.HP <= 0 Or OppPokemon.Status = Pokemon.StatusProblems.Fainted Then
Core.Player.RoamingPokemonData = RoamingPokemon.RemoveRoamingPokemon(RoamingPokemonStorage)
Else
Core.Player.RoamingPokemonData = RoamingPokemon.ReplaceRoamingPokemon(RoamingPokemonStorage)