mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Add alcremie form change case
This commit is contained in:
parent
1e1c454885
commit
8493471793
1 changed files with 6 additions and 1 deletions
|
@ -520,6 +520,8 @@ namespace PKHeX.Core
|
|||
return pkm.AltForm != orig; // bad compare?
|
||||
if ((int) Species.Toxtricity == pkm.Species)
|
||||
return pkm.AltForm == EvolutionMethod.GetAmpLowKeyResult(pkm.Nature);
|
||||
if ((int) Species.Alcremie == pkm.Species)
|
||||
return true;
|
||||
}
|
||||
if ((pkm.Species == (int)Species.Meowstic || pkm.Species == (int)Species.Indeedee) && pkm.Gender == 1)
|
||||
return pkm.AltForm == 1;
|
||||
|
@ -606,11 +608,14 @@ namespace PKHeX.Core
|
|||
return 4 > info.Moves.Count(m => m.Source == MoveSource.EggMove || m.Source == MoveSource.InheritLevelUp);
|
||||
}
|
||||
|
||||
/// <summary>Checks if the form may be different than the original encounter detail.</summary>
|
||||
/// <param name="pkm">Pokémon</param>
|
||||
/// <param name="species">Original species</param>
|
||||
internal static bool IsFormChangeable(PKM pkm, int species)
|
||||
{
|
||||
if (FormChange.Contains(species))
|
||||
return true;
|
||||
if (IsEvolvedFormChange(pkm))
|
||||
if (species != pkm.Species && IsEvolvedFormChange(pkm))
|
||||
return true;
|
||||
if (species == (int)Species.Zygarde && pkm.InhabitedGeneration(7) && pkm.AltForm > 1)
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue