Inline constant value

This commit is contained in:
Kurt
2021-12-26 01:06:30 -08:00
parent 1d0993f852
commit 76ab09f024

View File

@@ -108,7 +108,7 @@ private void SetSpeciesValues(int value)
return;
var table = EvolutionTree.GetEvolutionTree(1);
var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: -1, skipChecks: true);
var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: Legal.MaxSpeciesID_1, skipChecks: true);
var baseSpecies = evos[^1].Species;
if (IsCatchRatePreEvolutionRate(baseSpecies, value, rate))
return;