mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 18:45:15 -05:00
Fix mystery gift alpha check
Implement IAlpha for good measure
This commit is contained in:
@@ -216,7 +216,7 @@ private void VerifyAlphaMove(LegalityAnalysis data, PA8 pa, int alphaMove, ReadO
|
||||
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);
|
||||
|
||||
@@ -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 @@ public override GameVersion Version
|
||||
set { }
|
||||
}
|
||||
|
||||
public bool IsAlpha { get => false; set { } }
|
||||
|
||||
public override PKM ConvertToPKM(ITrainerInfo sav, EncounterCriteria criteria)
|
||||
{
|
||||
if (!IsPokémon)
|
||||
|
||||
Reference in New Issue
Block a user