mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 06:53:27 +02:00
[Bug] Fix missing fusion icon (#6381)
Fix nullish coalescing in `pokemon#isFusion`
This commit is contained in:
parent
c44e589303
commit
746ea69475
@ -1781,7 +1781,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* @returns Whether this Pokemon is currently fused with another species.
|
* @returns Whether this Pokemon is currently fused with another species.
|
||||||
*/
|
*/
|
||||||
isFusion(useIllusion = false): boolean {
|
isFusion(useIllusion = false): boolean {
|
||||||
return useIllusion ? !!this.summonData.illusion?.fusionSpecies : !!this.fusionSpecies;
|
return !!(useIllusion ? (this.summonData.illusion?.fusionSpecies ?? this.fusionSpecies) : this.fusionSpecies);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user