From b2334bb13046bf6a2b43037221ced204fd4cdbbd Mon Sep 17 00:00:00 2001 From: Benjamin Odom Date: Thu, 16 May 2024 10:52:16 -0500 Subject: [PATCH] Fix Entry Hazard Miss Made Entry Hazards bypass the accuracy check as they cannot miss a target. There's still one more bug to fix with this but it requires way more code changes. This change needed to be done as well, so I'm getting it out early. --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index f44b4bcaa0b..d3ebc39fa5a 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2588,7 +2588,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();