diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 5faadb24ee..a5e7f85068 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -7001,7 +7001,7 @@ static void Cmd_various(void) u32 statId; do { - statId = (Random() % NUM_BATTLE_STATS) + 1; + statId = (Random() % (NUM_BATTLE_STATS - 1)) + 1; } while (!(bits & gBitTable[statId])); SET_STATCHANGER(statId, 2, FALSE);