diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index ac3b6cacd38..22df5d3a6c3 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1538,8 +1538,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { * @returns The type damage multiplier, indicating the effectiveness of the move */ getMoveEffectiveness(source: Pokemon, move: Move, ignoreAbility: boolean = false, simulated: boolean = true, cancelled?: Utils.BooleanHolder): TypeDamageMultiplier { - if (!Utils.isNullOrUndefined(this.turnData.moveEffectiveness)) { - return this.turnData.moveEffectiveness; + if (!Utils.isNullOrUndefined(this.turnData?.moveEffectiveness)) { + return this.turnData?.moveEffectiveness; } if (move.hasAttr(TypelessAttr)) {