mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 00:26:45 -05:00
Update MethodPokeSpot.cs
Closes #4470 Co-Authored-By: santacrab2 <79347566+santacrab2@users.noreply.github.com>
This commit is contained in:
@@ -224,7 +224,10 @@ public static void SetRandomIVs(XK3 pk, EncounterCriteria criteria, byte levelMi
|
||||
|
||||
var origin = XDRNG.Prev6(preIV);
|
||||
if (!IsValidAnimation(origin, out origin, out _))
|
||||
{
|
||||
seed = XDRNG.Next(seed); // avoid infinite loop
|
||||
continue;
|
||||
}
|
||||
|
||||
var iv1 = XDRNG.Next15(ref seed);
|
||||
var iv2 = XDRNG.Next15(ref seed);
|
||||
|
||||
Reference in New Issue
Block a user