diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 6ff52b0b446..6e3f4c77f87 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -1257,12 +1257,11 @@ export class MoveTypeChangeAbAttr extends PreAttackAbAttr { * @returns whether the move type change attribute can be applied */ override canApplyPreAttack(pokemon: Pokemon, _passive: boolean, _simulated: boolean, _defender: Pokemon | null, move: Move, _args: [NumberHolder?, NumberHolder?, ...any]): boolean { - return ((!this.condition || this.condition(pokemon, _defender, move)) && + return (!this.condition || this.condition(pokemon, _defender, move)) && !noAbilityTypeOverrideMoves.has(move.id) && (!pokemon.isTerastallized || (move.id !== Moves.TERA_BLAST && - (move.id !== Moves.TERA_STARSTORM || pokemon.getTeraType() !== PokemonType.STELLAR || !pokemon.hasSpecies(Species.TERAPAGOS))))) - ?? false; + (move.id !== Moves.TERA_STARSTORM || pokemon.getTeraType() !== PokemonType.STELLAR || !pokemon.hasSpecies(Species.TERAPAGOS)))); } /**