Verify g4 tower ribbons as invalid on >=g5 origin

https://projectpokemon.org/home/forums/topic/57026-gen-5-contest-stats-ribbons-bugissue/
This commit is contained in:
Kurt 2020-05-09 20:45:19 -07:00
parent 5fc15dc9c8
commit 8650b5ceb2

View file

@ -102,7 +102,7 @@ namespace PKHeX.Core
}
if (pkm is IRibbonSetUnique4 u4)
{
if (!IsAllowedBattleFrontier(pkm.Species, pkm.AltForm, 4))
if (!IsAllowedBattleFrontier(pkm.Species, pkm.AltForm, 4) || gen > 4)
{
foreach (var z in GetInvalidRibbonsNone(u4.RibbonBitsAbility(), u4.RibbonNamesAbility()))
yield return z;