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