mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-13 08:50:49 -05:00
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:
parent
8e32ab5008
commit
9127f6548a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user