mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 13:33:01 +02:00
Fix issue with undefined variant
This commit is contained in:
parent
b546203118
commit
6220165315
@ -162,8 +162,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (this.shiny === undefined)
|
if (this.shiny === undefined)
|
||||||
this.trySetShiny();
|
this.trySetShiny();
|
||||||
|
|
||||||
if (this.shiny && this.variant === undefined)
|
if (this.variant === undefined)
|
||||||
this.variant = this.generateVariant();
|
this.variant = this.shiny ? this.generateVariant() : 0;
|
||||||
|
|
||||||
if (nature !== undefined)
|
if (nature !== undefined)
|
||||||
this.setNature(nature);
|
this.setNature(nature);
|
||||||
|
Loading…
Reference in New Issue
Block a user