From 27cce4dcd2f4cee3a41c72ea6d8717e2aabd0ab4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 16 Jun 2020 22:16:21 -0500 Subject: [PATCH] Disallow galar master rank ribbon on legends Closes #2858 --- PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifier.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifier.cs b/PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifier.cs index d62d13b94..ba9950e32 100644 --- a/PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifier.cs +++ b/PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifier.cs @@ -380,6 +380,10 @@ private static IEnumerable 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)); } }