mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-01 13:26:39 -05:00
@@ -85,7 +85,11 @@ private int[] GetRandomMoves(int count, int index)
|
||||
if (count == 0)
|
||||
return moves;
|
||||
moves[0] = STABFirst ? moverand.GetRandomFirstMove(index) : moverand.GetRandomFirstMoveAny();
|
||||
moverand.GetRandomLearnset(index, count - 1).CopyTo(moves, 1);
|
||||
var rand = moverand.GetRandomLearnset(index, count - 1);
|
||||
|
||||
// STAB Moves (if requested) come first; randomize the order of moves
|
||||
Util.Shuffle(rand);
|
||||
rand.CopyTo(moves, 1);
|
||||
return moves;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user