mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
randomizer - static pokemon
This commit is contained in:
@@ -331,7 +331,11 @@ end
|
||||
#===============================================================================
|
||||
# Used when walking in tall grass, hence the additional code.
|
||||
def pbWildBattle(species, level, outcomeVar=1, canRun=true, canLose=false)
|
||||
species = GameData::Species.get(species).id
|
||||
if $game_switches[SWITCH_RANDOM_STATIC_ENCOUNTERS]
|
||||
species = $PokemonGlobal.psuedoBSTHash[dexNum(species)]
|
||||
else
|
||||
species = GameData::Species.get(species).id
|
||||
end
|
||||
# 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