mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 07:10:26 -05:00
@@ -71,8 +71,13 @@ protected override bool IsMatchLocation(PKM pk)
|
||||
return true;
|
||||
if (Location == 0)
|
||||
return true;
|
||||
if (pk is ICaughtData2 {CaughtData: not 0})
|
||||
return Location == pk.Met_Location;
|
||||
if (pk is ICaughtData2 c2)
|
||||
{
|
||||
if (c2.CaughtData is not 0)
|
||||
return Location == pk.Met_Location;
|
||||
if (pk.Species == (int)Core.Species.Celebi)
|
||||
return false; // Cannot reset the Met data
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user