Workaround for using pokeradar without repel

This commit is contained in:
chardub
2023-01-02 21:18:36 -05:00
parent 2acca429e3
commit 86c1df08d1
8 changed files with 13 additions and 1 deletions

View File

@@ -55,6 +55,10 @@ def pbUsePokeRadar
playPokeradarLightAnimation(rareAllowed)
pbWait(20)
pbPokeRadarHighlightGrass
if $PokemonGlobal.repel <= 0
$PokemonGlobal.repel=10
$PokemonGlobal.tempRepel=true
end
return true
end
@@ -101,6 +105,11 @@ def displayPokeradarBanner(seenPokemon = [], unseenPokemon = [], includeRare = f
end
def pbPokeRadarCancel
if $PokemonGlobal.tempRepel
$PokemonGlobal.repel=0
end
$PokemonGlobal.tempRepel=false
if $PokemonTemp.pokeradar_ui != nil
$PokemonTemp.pokeradar_ui.dispose
$PokemonTemp.pokeradar_ui = nil