From f6db1034739a0cfbfe1fcb84e45fb8c303559141 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 8 Oct 2017 23:07:06 -0700 Subject: [PATCH] disallow mega forms if slot was forced closes #206 --- pk3DS/Subforms/Gen6/RSTE.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Subforms/Gen6/RSTE.cs b/pk3DS/Subforms/Gen6/RSTE.cs index f03d491..2171583 100644 --- a/pk3DS/Subforms/Gen6/RSTE.cs +++ b/pk3DS/Subforms/Gen6/RSTE.cs @@ -668,7 +668,7 @@ private static void RandomizeTeam(trdata6 t, MoveRandomizer move, ushort[] itemv pk.Species = (ushort)species; pk.Gender = 0; // Set Gender to Random - bool mega = !megaEvos.Contains(species) || rRandomMegas; + bool mega = rRandomMegas & !(mevo && p == last); // except if mega evolution is forced for the last slot pk.Form = (ushort)Randomizer.GetRandomForme(pk.Species, mega, true, Main.SpeciesStat); } if (rLevel)