Update src/field/pokemon.ts

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
Lylian BALL 2024-11-09 11:59:22 +01:00 committed by GitHub
parent f5e4c3267c
commit 1dc1a91c05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {