mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Add pikachu7 forme nongift check
other branch was unhandled, flag if we have a mismatch closes #1762
This commit is contained in:
parent
06733d6e34
commit
17e4bdbe3a
1 changed files with 4 additions and 5 deletions
|
@ -1948,11 +1948,10 @@ namespace PKHeX.Core
|
|||
}
|
||||
if (Info.Generation == 7 && pkm.AltForm != 0 ^ Type == typeof(MysteryGift))
|
||||
{
|
||||
if (EncounterMatch is WC7 gift && gift.Form != pkm.AltForm)
|
||||
{
|
||||
AddLine(Severity.Invalid, V307, CheckIdentifier.Form);
|
||||
return;
|
||||
}
|
||||
bool gift = EncounterMatch is WC7 g && g.Form != pkm.AltForm;
|
||||
var msg = gift ? V307 : V317;
|
||||
AddLine(Severity.Invalid, msg, CheckIdentifier.Form);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 201 when Info.Generation == 2 && pkm.AltForm >= 26:
|
||||
|
|
Loading…
Reference in a new issue