[Sprite] Target FormSpriteKey-labelled sprite assets (#3322)
This commit is contained in:
parent
ca64c4aaf2
commit
d879436751
|
@ -301,7 +301,7 @@ export abstract class PokemonSpeciesForm {
|
||||||
let variantDataIndex: integer|string = this.speciesId;
|
let variantDataIndex: integer|string = this.speciesId;
|
||||||
const species = getPokemonSpecies(this.speciesId);
|
const species = getPokemonSpecies(this.speciesId);
|
||||||
if (species.forms.length > 0) {
|
if (species.forms.length > 0) {
|
||||||
formkey = species.forms[formIndex]?.formKey;
|
formkey = species.forms[formIndex]?.formSpriteKey;
|
||||||
if (formkey) {
|
if (formkey) {
|
||||||
variantDataIndex = `${this.speciesId}-${formkey}`;
|
variantDataIndex = `${this.speciesId}-${formkey}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue