Disallow galar master rank ribbon on legends

Closes #2858
This commit is contained in:
Kurt 2020-06-16 22:16:21 -05:00
parent f51e3673da
commit 27cce4dcd2

View File

@ -380,6 +380,10 @@ private static IEnumerable<RibbonResult> GetInvalidRibbons8Any(PKM pkm, IRibbonS
bool hasChampMemory = (pkm.Format == 8 && pkm.HT_Memory == memChampion) || (pkm.Gen8 && pkm.OT_Memory == memChampion);
if (hasChampMemory && !s8.RibbonChampionGalar)
yield return new RibbonResult(nameof(s8.RibbonChampionGalar));
// Legends cannot compete in Ranked, thus cannot reach Master Rank and obtain the ribbon.
if (s8.RibbonMasterRank && Legal.Legends.Contains(pkm.Species))
yield return new RibbonResult(nameof(s8.RibbonMasterRank));
}
}