From 4ae60c1734b5a67e74ed184b061cd63c08adbf05 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 18 Jan 2021 17:33:42 -0500 Subject: [PATCH] Fix --- structures/pokemon/Pokemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index fa9fa659..f3011b29 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -62,7 +62,7 @@ module.exports = class Pokemon { } baseStatTotal(variety) { - const found = this.varieties.find(vrity => variety ? vrity.id === variety.toLowerCase() : variety.default); + const found = this.varieties.find(vrity => variety ? vrity.id === variety.toLowerCase() : vrity.default); if (!found) return null; return found.stats.hp + found.stats.atk + found.stats.def + found.stats.sAtk + found.stats.sDef + found.stats.spd; }