mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 23:06:00 +00:00
Fixed roaming Pokémon not remembering whether they have been caught
This commit is contained in:
@@ -6,7 +6,8 @@ class PokemonGlobalMetadata
|
|||||||
attr_writer :roamPokemonCaught
|
attr_writer :roamPokemonCaught
|
||||||
|
|
||||||
def roamPokemonCaught
|
def roamPokemonCaught
|
||||||
return @roamPokemonCaught || []
|
@roamPokemonCaught = [] if !@roamPokemonCaught
|
||||||
|
return @roamPokemonCaught
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ def pbDebugRoamers
|
|||||||
# defeated -> caught
|
# defeated -> caught
|
||||||
$PokemonGlobal.roamPokemonCaught[cmdwindow.index] = true
|
$PokemonGlobal.roamPokemonCaught[cmdwindow.index] = true
|
||||||
elsif pkmn[2] > 0
|
elsif pkmn[2] > 0
|
||||||
# caught -> not roaming (or roaming if Switch ID is 0
|
# caught -> not roaming (or roaming if Switch ID is 0)
|
||||||
$game_switches[pkmn[2]] = false if pkmn[2] > 0
|
$game_switches[pkmn[2]] = false if pkmn[2] > 0
|
||||||
$PokemonGlobal.roamPokemon[cmdwindow.index] = nil
|
$PokemonGlobal.roamPokemon[cmdwindow.index] = nil
|
||||||
$PokemonGlobal.roamPokemonCaught[cmdwindow.index] = false
|
$PokemonGlobal.roamPokemonCaught[cmdwindow.index] = false
|
||||||
|
|||||||
Reference in New Issue
Block a user