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