PKHeX/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8.cs
Kurt 5d3bc289b6 seal hunting
Mark things as sealed as they shouldn't be inherited from or overriden in a derived class.
2020-09-07 13:51:13 -07:00

18 lines
No EOL
548 B
C#

namespace PKHeX.Core
{
public class EncounterStatic8 : EncounterStatic, IGigantamax
{
public sealed override int Generation => 8;
public bool CanGigantamax { get; set; }
protected override bool IsMatchLevel(PKM pkm, DexLevel evo)
{
var met = pkm.Met_Level;
if (met == Level)
return true;
if (EncounterArea8.IsWildArea8(Location) || EncounterArea8.IsWildArea8Armor(Location))
return met == 60;
return false;
}
}
}