Clear cached species and forme when evolving a Pokemon.

This commit is contained in:
Deukhoofd 2022-01-16 13:39:55 +01:00
parent 07aac1b873
commit aaad311158
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -526,6 +526,9 @@ namespace PkmnLibSharp.Battling
public void Evolve(Species species, Forme forme)
{
Pkmnlib.Generated.Pokemon.Evolve(Ptr, species.Ptr, forme.Ptr).Assert();
// Clear cached species and forme.
_species = species;
_forme = forme;
}
private Species? _displaySpecies;