mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Fix alpha move flag check
This commit is contained in:
parent
f4e6520afe
commit
649ba5f1f2
|
|
@ -120,7 +120,7 @@ public bool IsMatchExact(PKM pk, EvoCriteria evo)
|
|||
|
||||
public EncounterMatchRating GetMatchRating(PKM pk)
|
||||
{
|
||||
if (IsAlpha && pk is IPlusRecord pa9 && !pa9.GetMovePlusFlag(PersonalTable.ZA[Species, Form].AlphaMove))
|
||||
if (IsAlpha && pk is IPlusRecord pa9 && pk.PersonalInfo is IPermitPlus p && !pa9.GetMovePlusFlag(p.RecordPermitIndexes.IndexOf(PersonalTable.ZA[Species, Form].AlphaMove)))
|
||||
return EncounterMatchRating.DeferredErrors;
|
||||
|
||||
var pidiv = TryGetSeed(pk, out _);
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ private EncounterMatchRating IsMatchDeferred(PKM pk)
|
|||
if (Shiny != Shiny.Random && !Shiny.IsValid(pk))
|
||||
return EncounterMatchRating.DeferredErrors;
|
||||
|
||||
if (IsAlpha && pk is IPlusRecord pa9 && !pa9.GetMovePlusFlag(PersonalTable.ZA[Species, Form].AlphaMove))
|
||||
if (IsAlpha && pk is IPlusRecord pa9 && pk.PersonalInfo is IPermitPlus p && !pa9.GetMovePlusFlag(p.RecordPermitIndexes.IndexOf(PersonalTable.ZA[Species, Form].AlphaMove)))
|
||||
return EncounterMatchRating.DeferredErrors;
|
||||
|
||||
var pidiv = TryGetSeed(pk, out _);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user