From 1dc1a91c05ed3eaae543f931012eff1a41cfbaf3 Mon Sep 17 00:00:00 2001 From: Lylian BALL <131535108+PyGaVS@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:59:22 +0100 Subject: [PATCH] Update src/field/pokemon.ts Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com> --- 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 705e7c99572..df9ebfa35cd 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1408,7 +1408,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } if (!types.length || !includeTeraType) { - const doIllusion: boolean = useIllusion === "AUTO" ? !forDefend : useIllusion; + const doIllusion: boolean = (useIllusion === "AUTO") ? !forDefend : useIllusion; if (!ignoreOverride && this.summonData?.types && this.summonData.types.length > 0 && (!this.battleData?.illusion.active || !doIllusion)) { this.summonData.types.forEach(t => types.push(t)); } else if (this.customPokemonData.types && this.customPokemonData.types.length > 0) {