diff --git a/src/data/move.ts b/src/data/move.ts index 99ef179ad30..6849a0fe7ce 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -55,6 +55,7 @@ export enum MoveTarget { /** {@link https://bulbapedia.bulbagarden.net/wiki/Category:Moves_that_target_all_Pok%C3%A9mon Moves that target all Pokemon} */ ALL, USER_SIDE, + /** {@link https://bulbapedia.bulbagarden.net/wiki/Category:Entry_hazard-creating_moves Entry hazard-creating moves} */ ENEMY_SIDE, BOTH_SIDES, PARTY diff --git a/src/phases.ts b/src/phases.ts index 1137c85afa6..f70fe9e857a 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2597,7 +2597,8 @@ export class MoveEffectPhase extends PokemonPhase { } hitCheck(target: Pokemon): boolean { - if (this.move.getMove().moveTarget === MoveTarget.USER) + // Moves targeting the user and entry hazards can't miss + if ([MoveTarget.USER, MoveTarget.ENEMY_SIDE].includes(this.move.getMove().moveTarget)) return true; const user = this.getUserPokemon();