mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Revised changes in previous commit about Pokémon generation for non-standard battles
This commit is contained in:
@@ -115,8 +115,9 @@ EventHandlers.add(:on_calling_wild_battle, :safari_battle,
|
||||
}
|
||||
)
|
||||
|
||||
def pbSafariBattle(pkmn)
|
||||
def pbSafariBattle(pkmn, level = 1)
|
||||
# Generate a wild Pokémon based on the species and level
|
||||
pkmn = pbGenerateWildPokemon(pkmn, level) if !pkmn.is_a?(Pokemon)
|
||||
foeParty = [pkmn]
|
||||
# Calculate who the trainer is
|
||||
playerTrainer = $player
|
||||
|
||||
Reference in New Issue
Block a user