Update OT affection check for 3-5 memories

https://projectpokemon.org/home/forums/topic/46180-oras-transfered-pokemon-invalid-ribbon/
Thanks piplupwater!

(there's no other usages of V129)
This commit is contained in:
Kurt 2018-07-11 17:43:48 -07:00
parent 8a83b9bde8
commit 6816c2de43

View file

@ -145,7 +145,7 @@ namespace PKHeX.Core
{
if (pkm.OT_Memory == 0 ^ !pkm.Gen6)
return GetInvalid(V152);
if (Info.Generation < 6 && pkm.OT_Affection != 0)
if (Info.Generation < 6 && pkm.OT_Affection != 0 && IsInvalidContestAffection(pkm))
return GetInvalid(V129);
}
// Unimplemented: Ingame Trade Memories