mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 07:26:12 -05:00
Fix fateful celebi transfer
Don't assign as crown unless it was received in gen4 (movie celebi only).
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user