From 746ea6947559e76577e5a67ea4d78f4dbbd277b9 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sat, 23 Aug 2025 18:58:29 -0500 Subject: [PATCH] [Bug] Fix missing fusion icon (#6381) Fix nullish coalescing in `pokemon#isFusion` --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 4904964ac1b..f02c9a1f30c 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1781,7 +1781,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container { * @returns Whether this Pokemon is currently fused with another species. */ isFusion(useIllusion = false): boolean { - return useIllusion ? !!this.summonData.illusion?.fusionSpecies : !!this.fusionSpecies; + return !!(useIllusion ? (this.summonData.illusion?.fusionSpecies ?? this.fusionSpecies) : this.fusionSpecies); } /**