Skip to content

Commit

Permalink
Flag maison banned species having maison ribbons
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed May 26, 2018
1 parent abe3567 commit 565a96d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PKHeX.Core/Legality/Ribbons/RibbonVerifier.cs
Expand Up @@ -184,6 +184,14 @@ private static IEnumerable<RibbonResult> GetInvalidRibbons6Any(PKM pkm, IRibbonS

const int mem_Chatelaine = 30;
bool hasChampMemory = pkm.HT_Memory == mem_Chatelaine || pkm.OT_Memory == mem_Chatelaine;
if (!IsAllowedBattleFrontier(pkm.Species))
{
if (hasChampMemory || s6.RibbonBattlerSkillful) // having memory and not ribbon is too rare, just flag here.
yield return new RibbonResult(nameof(s6.RibbonBattlerSkillful));
if (s6.RibbonBattlerExpert)
yield return new RibbonResult(nameof(s6.RibbonBattlerExpert));
yield break;
}
if (!hasChampMemory || s6.RibbonBattlerSkillful || s6.RibbonBattlerExpert)
yield break;

Expand Down

0 comments on commit 565a96d

Please sign in to comment.