From 0aab5098d7c931970f7ee51bbce92be8a861c850 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 20 Mar 2024 19:30:04 -0400 Subject: [PATCH] Fix generation --- structures/pokemon/Pokemon.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 0479829a..6f9226da 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -82,7 +82,8 @@ module.exports = class Pokemon { } get generation() { - if (this.id > 898) return null; + if (this.id > 1025) return null; + if (this.id >= 906) return 9; if (this.id >= 810) return 8; if (this.id >= 722) return 7; if (this.id >= 650) return 6;