diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb index 9b6b67e7f..e26e47de2 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb @@ -115,7 +115,7 @@ End If Dim isShiny As Boolean = False - If Core.Random.Next(0, P3D.Pokemon.MasterShinyRate) = 0 Then + If Core.Random.Next(0, P3D.Pokemon.MasterShinyRate + 1) = 0 Then isShiny = True End If If commas > 7 Then @@ -952,7 +952,7 @@ End If Dim isShiny As Boolean = False - If Core.Random.Next(0, P3D.Pokemon.MasterShinyRate) = 0 Then + If Core.Random.Next(0, P3D.Pokemon.MasterShinyRate + 1) = 0 Then isShiny = True End If If commas > 7 Then @@ -960,7 +960,7 @@ End If Dim Pokemon As Pokemon = Pokemon.GetPokemonByID(int(PokemonID), PokemonAddition) - Pokemon.Generate(Level, True) + Pokemon.Generate(Level, True, PokemonAddition) Pokemon.CatchTrainerName = catchTrainer Pokemon.OT = Core.Player.OT