mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-07 18:18:47 +00:00
4f40330af9
Closes #2835 ; zacian/zamazenta/eternatus can't have a DynamaxLevel other than 0. Co-Authored-By: Mikewando <mikewando@users.noreply.github.com>
19 lines
437 B
C#
19 lines
437 B
C#
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;
|
|
if (pkm.Species >= (int)Species.Zacian)
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|
|
}
|