mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 10:16:14 +00:00
Fix not loading shiny assets properly
This commit is contained in:
parent
32d6bea725
commit
bcafa47673
@ -166,7 +166,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
Promise.allSettled(moveIds.map(m => initMoveAnim(m)))
|
Promise.allSettled(moveIds.map(m => initMoveAnim(m)))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
loadMoveAnimAssets(this.scene, moveIds);
|
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())
|
if (this.isPlayer())
|
||||||
this.scene.loadAtlas(this.getBattleSpriteKey(), 'pokemon', this.getBattleSpriteAtlasPath());
|
this.scene.loadAtlas(this.getBattleSpriteKey(), 'pokemon', this.getBattleSpriteAtlasPath());
|
||||||
this.scene.load.once(Phaser.Loader.Events.COMPLETE, () => {
|
this.scene.load.once(Phaser.Loader.Events.COMPLETE, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user