Fix fateful celebi transfer

Don't assign as crown unless it was received in gen4 (movie celebi
only).
This commit is contained in:
Kaphotics
2016-08-04 19:16:13 -07:00
parent 0dd6b05f1d
commit 8924dd0940

View File

@@ -392,7 +392,7 @@ public PK5 convertToPK5()
BitConverter.GetBytes((uint)0).CopyTo(pk5.Data, 0x44);
// Met / Crown Data Detection
pk5.Met_Location = pk5.FatefulEncounter && Array.IndexOf(new[] {251, 243, 244, 245}, pk5.Species) >= 0
pk5.Met_Location = pk5.Gen4 && pk5.FatefulEncounter && Array.IndexOf(new[] {251, 243, 244, 245}, pk5.Species) >= 0
? (pk5.Species == 251 ? 30010 : 30012) // Celebi : Beast
: 30001; // Pokétransfer (not Crown)