[Bug][Sprite] Ensure evo silhouette disappears in evo phase (#6450)

Ensure evo silhouette disappears in evo phase
This commit is contained in:
Sirz Benjie 2025-08-30 19:41:58 -05:00 committed by GitHub
parent 4dc067daa2
commit 264dd6b2d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,7 @@ export class EvolutionPhase extends Phase {
private evolutionBgm: AnySound; private evolutionBgm: AnySound;
private evolutionHandler: EvolutionSceneHandler; private evolutionHandler: EvolutionSceneHandler;
/** Container for all assets used by the scene. When the scene is cleared, the children within this are destroyed. */
protected evolutionContainer: Phaser.GameObjects.Container; protected evolutionContainer: Phaser.GameObjects.Container;
protected evolutionBaseBg: Phaser.GameObjects.Image; protected evolutionBaseBg: Phaser.GameObjects.Image;
protected evolutionBg: Phaser.GameObjects.Video; protected evolutionBg: Phaser.GameObjects.Video;
@ -522,6 +523,7 @@ export class EvolutionPhase extends Phase {
return; return;
} }
if (i === lastCycle) { if (i === lastCycle) {
this.pokemonTintSprite.setVisible(false).setActive(false);
this.pokemonEvoTintSprite.setScale(1); this.pokemonEvoTintSprite.setScale(1);
} }
}, },