[Bug][UI/UX] Bringing mon icon overlays on top correctly (#6272)

Bringing mon icon overlays on top correctly
This commit is contained in:
Wlowscha 2025-08-16 00:51:28 +02:00 committed by GitHub
parent 98809c28bd
commit 46c78a0540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,26 @@ export class PokedexMonContainer extends Phaser.GameObjects.Container {
);
this.checkIconId(defaultProps.female, defaultProps.formIndex, defaultProps.shiny, defaultProps.variant);
this.add(this.icon);
[
this.hiddenAbilityIcon,
this.favoriteIcon,
this.classicWinIcon,
this.candyUpgradeIcon,
this.candyUpgradeOverlayIcon,
this.eggMove1Icon,
this.tmMove1Icon,
this.eggMove2Icon,
this.tmMove2Icon,
this.passive1Icon,
this.passive2Icon,
this.passive1OverlayIcon,
this.passive2OverlayIcon,
].forEach(icon => {
if (icon) {
this.bringToTop(icon);
}
});
}
checkIconId(female, formIndex, shiny, variant) {