mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 09:29:25 +02:00
parent
a117ff9bc8
commit
2f1cf2fc13
@ -1694,12 +1694,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