ruins of alph hidden chamber fix

This commit is contained in:
infinitefusion
2022-03-05 14:25:18 -05:00
parent 1aba4df441
commit ecb79c6336
12 changed files with 75 additions and 6 deletions

View File

@@ -432,7 +432,7 @@ def pbMoveTutorAnnotations(move, movelist = nil)
return ret
end
def pbMoveTutorChoose(move,movelist=nil,bymachine=false,oneusemachine=false)
def pbMoveTutorChoose(move,movelist=nil,bymachine=false,oneusemachine=false,selectedPokemonVariable=nil)
ret = false
move = GameData::Move.get(move).id
if movelist!=nil && movelist.is_a?(Array)
@@ -450,6 +450,9 @@ def pbMoveTutorChoose(move,movelist=nil,bymachine=false,oneusemachine=false)
chosen = screen.pbChoosePokemon
break if chosen<0
pokemon = $Trainer.party[chosen]
if selectedPokemonVariable != nil
pbSet(selectedPokemonVariable,pokemon)
end
if pokemon.egg?
pbMessage(_INTL("Eggs can't be taught any moves.")) { screen.pbUpdate }
elsif pokemon.shadowPokemon?