mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 07:15:17 -05:00
Update Master Rank Ribbon check for Regulation E
Sinnoh starters permitted, Kitakami dex permitted, Legendary/Mythical still disallowed. Also check for Battle Version on GO8 encounters in SWSH, which while are Gen 8 encounters, require Battle Version since they didn't originate from SWSH.
This commit is contained in:
@@ -105,7 +105,8 @@ public static bool IsRibbonValidMasterRank(PKM pk, IEncounterTemplate enc, Evolu
|
||||
/// </summary>
|
||||
private static bool IsRibbonValidMasterRankSWSH(PKM pk, IEncounterTemplate enc)
|
||||
{
|
||||
if (enc.Generation < 8 && pk is IBattleVersion { BattleVersion: 0 })
|
||||
// Transfers from prior games, as well as from GO, require the battle-ready symbol in order to participate in Ranked.
|
||||
if (enc.Generation < 8 || enc.Version == GameVersion.GO && pk is IBattleVersion { BattleVersion: 0 })
|
||||
return false;
|
||||
|
||||
// GO transfers: Capture date is global time, and not console changeable.
|
||||
@@ -134,13 +135,6 @@ private static bool IsRibbonValidMasterRankSV(ISpeciesForm pk)
|
||||
return false;
|
||||
if (SpeciesCategory.IsMythical(species))
|
||||
return false;
|
||||
|
||||
// DLC 1: Teal Mask Additions
|
||||
if (species is (>= (int)Turtwig and <= (int)Empoleon))
|
||||
return false;
|
||||
var pi = PersonalTable.SV.GetFormEntry(species, pk.Form);
|
||||
if (pi.DexPaldea == 0 && pi.DexKitakami != 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user