mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 05:27:14 -05:00
Flag maison banned species having maison ribbons
https://projectpokemon.org/home/forums/topic/45410-skillfulexpert-battler-ribbon/ Thanks Davil!
This commit is contained in:
parent
abe3567174
commit
565a96db2a
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user