mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +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 (Info.Generation == 7 && pkm.AltForm != 0 ^ Type == typeof(MysteryGift))
|
||||||
{
|
{
|
||||||
if (EncounterMatch is WC7 gift && gift.Form != pkm.AltForm)
|
bool gift = EncounterMatch is WC7 g && g.Form != pkm.AltForm;
|
||||||
{
|
var msg = gift ? V307 : V317;
|
||||||
AddLine(Severity.Invalid, V307, CheckIdentifier.Form);
|
AddLine(Severity.Invalid, msg, CheckIdentifier.Form);
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 201 when Info.Generation == 2 && pkm.AltForm >= 26:
|
case 201 when Info.Generation == 2 && pkm.AltForm >= 26:
|
||||||
|
|
Loading…
Reference in a new issue