From 18de28c8070111970f4e40cb8c2b10398ac870f3 Mon Sep 17 00:00:00 2001 From: LaukkaE Date: Sat, 20 Apr 2024 14:52:47 +0300 Subject: [PATCH] Fix Wide Lens rm line --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 70160364f..98d474390 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2477,11 +2477,12 @@ export class MoveEffectPhase extends PokemonPhase { const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy); applyMoveAttrs(VariableAccuracyAttr, user, target, this.move.getMove(), moveAccuracy); - user.scene.applyModifiers(PokemonMoveAccuracyBoosterModifier, user.isPlayer(), user, moveAccuracy); if (moveAccuracy.value === -1) return true; + user.scene.applyModifiers(PokemonMoveAccuracyBoosterModifier, user.isPlayer(), user, moveAccuracy); + if (this.scene.arena.weather?.weatherType === WeatherType.FOG) moveAccuracy.value = Math.floor(moveAccuracy.value * 0.9);