From bcafa47673dc089d745671ff99e75995ff18fa67 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 17 Apr 2023 08:23:30 -0400 Subject: [PATCH] Fix not loading shiny assets properly --- src/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 8d7c6da3d..21b9daae5 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -166,7 +166,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { Promise.allSettled(moveIds.map(m => initMoveAnim(m))) .then(() => { loadMoveAnimAssets(this.scene, moveIds); - this.species.loadAssets(this.scene, this.gender === Gender.FEMALE); + this.species.loadAssets(this.scene, this.gender === Gender.FEMALE, this.shiny); if (this.isPlayer()) this.scene.loadAtlas(this.getBattleSpriteKey(), 'pokemon', this.getBattleSpriteAtlasPath()); this.scene.load.once(Phaser.Loader.Events.COMPLETE, () => {