diff --git a/Plugins/Elite Battle DX/[000] Scripts/Battle Scenes/Scene Hatching.rb b/Plugins/Elite Battle DX/[000] Scripts/Battle Scenes/Scene Hatching.rb index dbce58cd..ca32f1f1 100644 --- a/Plugins/Elite Battle DX/[000] Scripts/Battle Scenes/Scene Hatching.rb +++ b/Plugins/Elite Battle DX/[000] Scripts/Battle Scenes/Scene Hatching.rb @@ -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") @@ -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