This commit is contained in:
xeals 2023-04-27 09:51:37 +10:00
parent c6249b1b9b
commit 32e142b8cb
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -8,6 +8,8 @@ import calc, {
import assert from "assert"; import assert from "assert";
import chev, { Lexer } from "chevrotain"; import chev, { Lexer } from "chevrotain";
const gen = Generations.get(9);
/** /**
* Creates a lexer. * Creates a lexer.
* *
@ -266,7 +268,6 @@ function parseAndCalculate(line) {
} }
} }
const gen = Generations.get(8);
return calculate( return calculate(
gen, gen,
new Pokemon(gen, attacker, attackerOpts), new Pokemon(gen, attacker, attackerOpts),