roamer fix

This commit is contained in:
infinitefusion
2024-06-28 18:07:27 -04:00
parent 36094cbaac
commit 63e3d6970c

View File

@@ -74,7 +74,9 @@ def applyRoamWeather()
return if $game_screen.weather_type != :None return if $game_screen.weather_type != :None
currently_roaming = $PokemonGlobal.roamPosition.keys currently_roaming = $PokemonGlobal.roamPosition.keys
currently_roaming.each do |roamer_id| currently_roaming.each do |roamer_id|
roamerOnCurrentMap = $PokemonGlobal.roamPosition[roamer_id] == $game_map.map_id roamer_switch = Settings::ROAMING_SPECIES[roamer_id][2]
roamer_active = $game_switches[roamer_switch]
roamerOnCurrentMap = $PokemonGlobal.roamPosition[roamer_id] == $game_map.map_id && roamer_active
if roamerOnCurrentMap if roamerOnCurrentMap
return if $PokemonGlobal.roamPokemonCaught[roamer_id] return if $PokemonGlobal.roamPokemonCaught[roamer_id]
weather = Settings::ROAMING_SPECIES[roamer_id][6] weather = Settings::ROAMING_SPECIES[roamer_id][6]