mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
parent
a117ff9bc8
commit
2f1cf2fc13
@ -1694,12 +1694,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
* @returns Whether this Pokemon is shiny
|
||||
*/
|
||||
isShiny(useIllusion = false): boolean {
|
||||
if (useIllusion) {
|
||||
const illusion = this.summonData.illusion;
|
||||
return illusion?.shiny || (!!illusion?.fusionSpecies && !!illusion.fusionShiny);
|
||||
}
|
||||
|
||||
return this.shiny || (this.isFusion(useIllusion) && this.fusionShiny);
|
||||
return this.isBaseShiny(useIllusion) || this.isFusionShiny(useIllusion);
|
||||
}
|
||||
|
||||
isBaseShiny(useIllusion = false) {
|
||||
|
Loading…
Reference in New Issue
Block a user