From 32e142b8cb35b21f77a56cbd1960f4493beb9888 Mon Sep 17 00:00:00 2001 From: xeals Date: Thu, 27 Apr 2023 09:51:37 +1000 Subject: [PATCH] fix gen --- calc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calc.js b/calc.js index 3869f80..3265688 100644 --- a/calc.js +++ b/calc.js @@ -8,6 +8,8 @@ import calc, { import assert from "assert"; import chev, { Lexer } from "chevrotain"; +const gen = Generations.get(9); + /** * Creates a lexer. * @@ -266,7 +268,6 @@ function parseAndCalculate(line) { } } - const gen = Generations.get(8); return calculate( gen, new Pokemon(gen, attacker, attackerOpts),