Add affection contest check for pre gen6 events

https://projectpokemon.org/home/forums/topic/44674-bug-about-contests-ribbon/?do=findComment&comment=229739
This commit is contained in:
Kurt 2018-04-13 18:52:38 -07:00
parent 6b387f9037
commit 8cfd64df63

View file

@ -1627,7 +1627,7 @@ namespace PKHeX.Core
}
else if (EncounterMatch is MysteryGift mg && mg.Format < 6 && pkm.Format >= 6)
{
if (pkm.OT_Affection != 0)
if (pkm.OT_Affection != 0 && IsInvalidContestAffection())
return new CheckResult(Severity.Invalid, V133, CheckIdentifier.History);
if (pkm.CurrentHandler != 1)
return new CheckResult(Severity.Invalid, V134, CheckIdentifier.History);