[Sprite] Target FormSpriteKey-labelled sprite assets (#3322)

This commit is contained in:
chaosgrimmon 2024-08-04 01:06:51 -04:00 committed by GitHub
parent ca64c4aaf2
commit d879436751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,7 +301,7 @@ export abstract class PokemonSpeciesForm {
let variantDataIndex: integer|string = this.speciesId;
const species = getPokemonSpecies(this.speciesId);
if (species.forms.length > 0) {
formkey = species.forms[formIndex]?.formKey;
formkey = species.forms[formIndex]?.formSpriteKey;
if (formkey) {
variantDataIndex = `${this.speciesId}-${formkey}`;
}