Skip to content

Commit

Permalink
Update Scene Hatching.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Manurocker95 committed Jul 30, 2023
1 parent af4d043 commit 4c85e47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def pbStartScene(pokemon)
# get graphics for the egg crack
crackfilename = sprintf("Graphics/EBDX/Battlers/Eggs/%scracks", @pokemon.species) rescue nil
if !pbResolveBitmap(crackfilename)
species_id = EliteBattle.GetSpeciesIndex(species)
species_id = EliteBattle.GetSpeciesIndex(@pokemon.species)
crackfilename = sprintf("Graphics/EBDX/Battlers/Eggs/%03dcracks", species_id)
if !pbResolveBitmap(crackfilename)
crackfilename = sprintf("Graphics/EBDX/Battlers/Eggs/000cracks")
Expand Down Expand Up @@ -236,7 +236,7 @@ def pbMain
end
self.wait(32)
# Finish scene
frames = GameData::Species.cry_length(@pokemon.species, @pokemon.form)
frames = GameData::Species.cry_length(@pokemon.species, @pokemon.form).ceil
pbBGMStop()
GameData::Species.play_cry(@pokemon)
frames.times do
Expand Down

0 comments on commit 4c85e47

Please sign in to comment.