[Bug] Fix sprites of Pokemon without variants being weird when removed from party in starter select (#3296)

This commit is contained in:
Leo Kim 2024-08-02 14:35:13 +09:00 committed by GitHub
parent ffb7f17be1
commit 8f9ffabeef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2723,6 +2723,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
const props = this.scene.gameData.getSpeciesDexAttrProps(species, currentDexAttr); const props = this.scene.gameData.getSpeciesDexAttrProps(species, currentDexAttr);
this.starterIcons[s].setTexture(species.getIconAtlasKey(props.formIndex, props.shiny, props.variant)); this.starterIcons[s].setTexture(species.getIconAtlasKey(props.formIndex, props.shiny, props.variant));
this.starterIcons[s].setFrame(species.getIconId(props.female, props.formIndex, props.shiny, props.variant)); this.starterIcons[s].setFrame(species.getIconId(props.female, props.formIndex, props.shiny, props.variant));
this.checkIconId(this.starterIcons[s], species, props.female, props.formIndex, props.shiny, props.variant);
if (s >= index) { if (s >= index) {
this.starterCursorObjs[s].setPosition(this.starterCursorObjs[s + 1].x, this.starterCursorObjs[s + 1].y); this.starterCursorObjs[s].setPosition(this.starterCursorObjs[s + 1].x, this.starterCursorObjs[s + 1].y);
this.starterCursorObjs[s].setVisible(this.starterCursorObjs[s + 1].visible); this.starterCursorObjs[s].setVisible(this.starterCursorObjs[s + 1].visible);