Populate uninitialized PokemonBuilder fields before running several initializion methods.
This commit is contained in:
parent
385d70e5ed
commit
813cf65331
|
@ -166,6 +166,7 @@ namespace PkmnLibSharp.Battling
|
|||
{
|
||||
random = _defaultRandom;
|
||||
}
|
||||
PopulateUninitialized(species, forme!, random);
|
||||
|
||||
Item? heldItem = null;
|
||||
if (HeldItem != null)
|
||||
|
@ -199,7 +200,6 @@ namespace PkmnLibSharp.Battling
|
|||
Gender = species.GetRandomGender(random);
|
||||
}
|
||||
|
||||
PopulateUninitialized(species, forme!, random);
|
||||
return Finalize(species, forme!, heldItem, moves, nature);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue