mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
[Bug] Show variant icons when forms share masterlist entry (#3767)
This commit is contained in:
parent
d3dfd006f8
commit
c154c52517
@ -306,7 +306,7 @@ export abstract class PokemonSpeciesForm {
|
||||
let variantDataIndex: integer | string = this.speciesId;
|
||||
const species = getPokemonSpecies(this.speciesId);
|
||||
if (species.forms.length > 0 && formIndex !== undefined) {
|
||||
formkey = species.forms[formIndex]?.formSpriteKey;
|
||||
formkey = species.forms[formIndex]?.getFormSpriteKey(formIndex);
|
||||
if (formkey) {
|
||||
variantDataIndex = `${this.speciesId}-${formkey}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user