disallow mega forms if slot was forced

closes #206
This commit is contained in:
Kurt
2017-10-08 23:07:06 -07:00
parent 8d8546047d
commit f6db103473

View File

@@ -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)