Check Yellow catchrates when updating species

https://projectpokemon.org/home/forums/topic/46259-yellow-kadabra/
This commit is contained in:
Kurt 2018-07-14 18:08:51 -07:00
parent d2eba35504
commit cb80c02011

View file

@ -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;