mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 13:06:51 -05:00
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:
@@ -102,7 +102,7 @@ private static IEnumerable<RibbonResult> GetInvalidRibbons(PKM pkm, int gen)
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user