mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
randomizer fix - removes static encounter
This commit is contained in:
@@ -231,6 +231,9 @@ def pbBattleOnStepTaken(repel_active)
|
||||
end
|
||||
end
|
||||
|
||||
if encounter[0].is_a?(Integer)
|
||||
encounter[0] = getSpecies(encounter[0])
|
||||
end
|
||||
|
||||
$game_switches[SWITCH_FORCE_FUSE_NEXT_POKEMON] = false
|
||||
|
||||
|
||||
@@ -331,11 +331,7 @@ end
|
||||
#===============================================================================
|
||||
# Used when walking in tall grass, hence the additional code.
|
||||
def pbWildBattle(species, level, outcomeVar=1, canRun=true, canLose=false)
|
||||
if $game_switches[SWITCH_RANDOM_STATIC_ENCOUNTERS]
|
||||
species = $PokemonGlobal.psuedoBSTHash[dexNum(species)]
|
||||
else
|
||||
species = GameData::Species.get(species).id
|
||||
end
|
||||
species = GameData::Species.get(species).id
|
||||
# Potentially call a different pbWildBattle-type method instead (for roaming
|
||||
# Pokémon, Safari battles, Bug Contest battles)
|
||||
handled = [nil]
|
||||
|
||||
Reference in New Issue
Block a user