Clear cached species and forme when evolving a Pokemon.
This commit is contained in:
parent
07aac1b873
commit
aaad311158
|
@ -526,6 +526,9 @@ namespace PkmnLibSharp.Battling
|
||||||
public void Evolve(Species species, Forme forme)
|
public void Evolve(Species species, Forme forme)
|
||||||
{
|
{
|
||||||
Pkmnlib.Generated.Pokemon.Evolve(Ptr, species.Ptr, forme.Ptr).Assert();
|
Pkmnlib.Generated.Pokemon.Evolve(Ptr, species.Ptr, forme.Ptr).Assert();
|
||||||
|
// Clear cached species and forme.
|
||||||
|
_species = species;
|
||||||
|
_forme = forme;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Species? _displaySpecies;
|
private Species? _displaySpecies;
|
||||||
|
|
Loading…
Reference in New Issue