Handle fixed-moveset missing move cases

Stadium Eevee has less moves than if populated by initial moves; need to use the encounter moves for moveset mons.

Co-Authored-By: ShadowMario3 <36941677+ShadowMario3@users.noreply.github.com>
This commit is contained in:
Kurt 2024-03-10 23:22:37 -05:00
parent 8e32ab5008
commit 9127f6548a

View File

@ -92,7 +92,10 @@ private static void FlagFishyMoveSlots(Span<MoveResult> result, ReadOnlySpan<ush
return;
Span<ushort> moves = stackalloc ushort[4];
GetEncounterMoves(enc, moves);
if (enc is IMoveset m)
m.Moves.CopyTo(moves);
else
GetEncounterMoves(enc, moves);
// Count the amount of initial moves not present in the current list.
int count = CountMissing(current, moves);