From 2bca7d364adc52c309279bc9828fd3cfde816f08 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 1 Feb 2021 18:08:31 -0500 Subject: [PATCH] Fix --- commands/games-sp/pokemon-advantage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/pokemon-advantage.js b/commands/games-sp/pokemon-advantage.js index 189e421c..10f1c05b 100644 --- a/commands/games-sp/pokemon-advantage.js +++ b/commands/games-sp/pokemon-advantage.js @@ -175,7 +175,7 @@ module.exports = class PokemonAdvantageCommand extends Command { secndResult += this.calculateSingleAdvantage(types1, secndEffectives1); if (secndEffectives2) secndResult += this.calculateSingleAdvantage(types1, secndEffectives2); if (firstResult === secndResult) return true; - return firstResult > secndResult ? pkmn2 : pkmn1; + return firstResult > secndResult ? pkmn1 : pkmn2; } calculateSingleAdvantage(types, advs) {