[Bug] Show variant icons when forms share masterlist entry (#3767)

This commit is contained in:
chaosgrimmon 2024-08-27 16:25:36 -04:00 committed by GitHub
parent d3dfd006f8
commit c154c52517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,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 && formIndex !== undefined) { if (species.forms.length > 0 && formIndex !== undefined) {
formkey = species.forms[formIndex]?.formSpriteKey; formkey = species.forms[formIndex]?.getFormSpriteKey(formIndex);
if (formkey) { if (formkey) {
variantDataIndex = `${this.speciesId}-${formkey}`; variantDataIndex = `${this.speciesId}-${formkey}`;
} }