Fix crash when encountering a shiny

This commit is contained in:
Flashfyre committed 2023-07-05 11:54:36 -04:00
1 parent d556f5aca1
commit 7cd45b30eb
3 files changed
+3 -12

No files matched your search

+1 -1
View File
@@ -663,7 +663,7 @@ class PartySlot extends Phaser.GameObjects.Container {
}
if (this.pokemon.shiny) {
const shinyStar = this.scene.add.image(0, 0, 'shiny');
const shinyStar = this.scene.add.image(0, 0, 'shiny_star');
shinyStar.setOrigin(0, 0);
shinyStar.setPositionRelative(slotLevelLabel, this.slotIndex >= battlerCount ? 35 : 67, this.slotIndex >= battlerCount ? -1 : -18);