Fixed location signpost not appearing properly when using Fly, fixed wild/trainer Pokémon with a "getForm" handler not using it

This commit is contained in:
Maruno17
2023-11-20 22:11:32 +00:00
parent e0dcdef321
commit 1080f69a0d
10 changed files with 89 additions and 88 deletions

View File

@@ -131,10 +131,7 @@ module GameData
pkmn = Pokemon.new(species, pkmn_data[:level], trainer, false)
trainer.party.push(pkmn)
# Set Pokémon's properties if defined
if pkmn_data[:form]
pkmn.forced_form = pkmn_data[:form] if MultipleForms.hasFunction?(species, "getForm")
pkmn.form_simple = pkmn_data[:form]
end
pkmn.form_simple = pkmn_data[:form] if pkmn_data[:form]
pkmn.item = pkmn_data[:item]
if pkmn_data[:moves] && pkmn_data[:moves].length > 0
pkmn_data[:moves].each { |move| pkmn.learn_move(move) }