mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +00:00
Hatch memory check for memories of OT
Memory will be flagged as illegal if Pokemon did not hatch from an egg
This commit is contained in:
parent
e65224e5f5
commit
001c570a48
1 changed files with 4 additions and 0 deletions
|
@ -696,6 +696,10 @@ namespace PKHeX
|
|||
}
|
||||
switch (pk6.OT_Memory)
|
||||
{
|
||||
case 2: // {0} hatched from an Egg and saw {1} for the first time at... {2}. {4} that {3}.
|
||||
if (!pk6.WasEgg)
|
||||
return new LegalityCheck(Severity.Invalid, "OT Memory: OT did not hatch this.");
|
||||
return new LegalityCheck(Severity.Valid, "OT Memory is valid.");
|
||||
case 4: // {0} became {1}’s friend when it arrived via Link Trade at... {2}. {4} that {3}.
|
||||
return new LegalityCheck(Severity.Invalid, "OT Memory: Link Trade is not a valid first memory.");
|
||||
case 6: // {0} went to the Pokémon Center in {2} with {1} and had its tired body healed there. {4} that {3}.
|
||||
|
|
Loading…
Reference in a new issue