mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Check Yellow catchrates when updating species
https://projectpokemon.org/home/forums/topic/46259-yellow-kadabra/
This commit is contained in:
parent
d2eba35504
commit
cb80c02011
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ namespace PKHeX.Core
|
|||
int baseSpecies = Legal.GetBaseSpecies(this);
|
||||
int Rate = Catch_Rate;
|
||||
int count = value - baseSpecies + 1;
|
||||
if (Enumerable.Range(baseSpecies, count).All(z => Rate != PersonalTable.RB[z].CatchRate))
|
||||
if (Enumerable.Range(baseSpecies, count).All(z => Rate != PersonalTable.RB[z].CatchRate && Rate != PersonalTable.Y[z].CatchRate))
|
||||
Catch_Rate = PersonalTable.RB[value].CatchRate;
|
||||
}
|
||||
Type_A = PersonalInfo.Type1;
|
||||
|
|
Loading…
Reference in a new issue