mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Fix catchrate set auto-fix
https://projectpokemon.org/home/forums/topic/43252-pk1-pokémon-files-arent-holding-items-when-imported-to-gen-2/?tab=comments#comment-225459
This commit is contained in:
parent
fa90ae21df
commit
14821dfb82
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ namespace PKHeX.Core
|
|||
{
|
||||
int baseSpecies = Legal.GetBaseSpecies(this);
|
||||
int Rate = Catch_Rate;
|
||||
if (Enumerable.Range(baseSpecies, value).All(z => Rate != PersonalTable.RB[z].CatchRate))
|
||||
int count = value - baseSpecies + 1;
|
||||
if (Enumerable.Range(baseSpecies, count).All(z => Rate != PersonalTable.RB[z].CatchRate))
|
||||
Catch_Rate = PersonalTable.RB[value].CatchRate;
|
||||
}
|
||||
Type_A = PersonalInfo.Types[0];
|
||||
|
|
Loading…
Reference in a new issue