From 4e1e2faf1fcd9db5383e423906ca507d83c32d21 Mon Sep 17 00:00:00 2001 From: ForwardFeed <76596109+ForwardFeed@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:15:46 +0200 Subject: [PATCH] ups, eslint --- calc/src/mechanics/gen12.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calc/src/mechanics/gen12.ts b/calc/src/mechanics/gen12.ts index 3d49db439..89aaed235 100644 --- a/calc/src/mechanics/gen12.ts +++ b/calc/src/mechanics/gen12.ts @@ -76,11 +76,11 @@ export function calculateRBYGSC( // In Gen 1, Super Fang can hit Ghost types if (gen.num === 1 && (move.named('Super Fang'))) { - const lostHP = Math.floor(defender.curHP() / 2) || 1; - result.damage = lostHP; - return result; + const lostHP = Math.floor(defender.curHP() / 2) || 1; + result.damage = lostHP; + return result; } - + const type1Effectiveness = getMoveEffectiveness(gen, move, firstDefenderType, field.defenderSide.isForesight); const type2Effectiveness = secondDefenderType