Fix mystery gift alpha check

Implement IAlpha for good measure
This commit is contained in:
Kurt 2022-02-04 20:13:36 -08:00
parent 16e52cdb19
commit b72c5bbf1a
2 changed files with 4 additions and 2 deletions

View file

@ -216,7 +216,7 @@ public sealed class LegendsArceusVerifier : Verifier
private void VerifyAlphaMoveZero(LegalityAnalysis data)
{
var enc = data.Info.EncounterMatch;
if (enc is IAlpha { IsAlpha: false })
if (enc is not IAlpha { IsAlpha: true })
return; // okay
var pi = PersonalTable.LA.GetFormEntry(enc.Species, enc.Form);

View file

@ -8,7 +8,7 @@ namespace PKHeX.Core
/// <summary>
/// Generation 8 Mystery Gift Template File, same as <see cref="WC8"/> with <see cref="IGanbaru"/> fields at the end.
/// </summary>
public sealed class WA8 : DataMysteryGift, ILangNick, INature, IGigantamax, IDynamaxLevel, IRibbonIndex, IMemoryOT, ILangNicknamedTemplate, IGanbaru,
public sealed class WA8 : DataMysteryGift, ILangNick, INature, IGigantamax, IDynamaxLevel, IRibbonIndex, IMemoryOT, ILangNicknamedTemplate, IGanbaru, IAlpha,
IRibbonSetEvent3, IRibbonSetEvent4, IRibbonSetCommon3, IRibbonSetCommon4, IRibbonSetCommon6, IRibbonSetCommon7, IRibbonSetCommon8, IRibbonSetMark8
{
public const int Size = 0x2C8;
@ -368,6 +368,8 @@ namespace PKHeX.Core
set { }
}
public bool IsAlpha { get => false; set { } }
public override PKM ConvertToPKM(ITrainerInfo sav, EncounterCriteria criteria)
{
if (!IsPokémon)