mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-21 19:43:06 +00:00
Update BallApplicator.cs
This commit is contained in:
parent
1a5d06d0d0
commit
4af95f63b3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ public static class BallApplicator
|
|||
/// <returns>Count of <see cref="Ball"/> values that the <see cref="PKM"/> is legal with.</returns>
|
||||
public static int GetLegalBalls(Span<Ball> result, PKM pk, IEncounterTemplate enc)
|
||||
{
|
||||
if (enc is EncounterInvalid)
|
||||
return 0;
|
||||
if (enc.Species is (ushort)Species.Nincada && pk.Species is (ushort)Species.Shedinja)
|
||||
return GetLegalBallsEvolvedShedinja(result, pk, enc);
|
||||
return LoadLegalBalls(result, pk, enc);
|
||||
|
|
Loading…
Reference in a new issue