using static PKHeX.Core.Encounters8Nest; namespace PKHeX.Core { /// /// Generation 8 Nest Encounter (Max Raid) Underground /// /// public sealed record EncounterStatic8U : EncounterStatic8Nest { public override int Location { get => MaxLair; init { } } public EncounterStatic8U(int species, int form, int level) : base(GameVersion.SWSH) // no difference in met location for hosted raids { Species = species; Form = form; Level = level; DynamaxLevel = 8; FlawlessIVCount = 4; } public override bool IsMatch(PKM pkm, DexLevel evo) { if (pkm.FlawlessIVCount < FlawlessIVCount) return false; return base.IsMatch(pkm, evo); } // no downleveling, unlike all other raids protected override bool IsMatchLevel(PKM pkm, DexLevel evo) => pkm.Met_Level == Level; } }