Update BallApplicator.cs

This commit is contained in:
Kurt 2024-11-17 20:59:54 -06:00
parent 1a5d06d0d0
commit 4af95f63b3

View file

@ -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);