mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
41aff36d50
Probably easier to blacklist this way?
22 lines
556 B
C#
22 lines
556 B
C#
using static PKHeX.Core.Species;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public interface IDynamaxLevel
|
|
{
|
|
byte DynamaxLevel { get; set; }
|
|
}
|
|
|
|
public static class DynamaxLevelExtensions
|
|
{
|
|
public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm)
|
|
{
|
|
if (pkm.IsEgg)
|
|
return false;
|
|
var species = pkm.Species;
|
|
if (species == (int)Zacian || species == (int)Zamazenta || species == (int)Eternatus)
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|
|
}
|