From 9af513affd3bb208862331629ae643db8809084f Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Fri, 18 Sep 2020 20:33:44 +0100 Subject: [PATCH] Fixed prevolution data not being determined for species that don't evolve further --- Data/Scripts/022_Compiler/002_Compiler_PBS.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Scripts/022_Compiler/002_Compiler_PBS.rb b/Data/Scripts/022_Compiler/002_Compiler_PBS.rb index 951c9d3cc..c36f32120 100644 --- a/Data/Scripts/022_Compiler/002_Compiler_PBS.rb +++ b/Data/Scripts/022_Compiler/002_Compiler_PBS.rb @@ -862,7 +862,6 @@ def pbCompilePokemonData end # Add prevolution data to all species as the first "evolution method". for sp in 1..maxValue - next if !evolutions[sp] preSpecies = -1 evoData = nil # Check for another species that evolves into sp. @@ -878,6 +877,7 @@ def pbCompilePokemonData end next if !evoData # evoData[1]=method, evoData[2]=level - both are unused # Found a species that evolves into e, record it as a prevolution. + evolutions[sp] = [] if !evolutions[sp] evolutions[sp] = [[preSpecies,evoData[1],evoData[2],true]].concat(evolutions[sp]) end # Save evolutions data.