From 1cbac829a0916144a723ce7b3ce253c1f186f861 Mon Sep 17 00:00:00 2001 From: Fuad Ali Date: Fri, 20 Jun 2025 15:29:59 +0100 Subject: [PATCH] =?UTF-8?q?Corrected=20grammar=20error=20in=20variable=20d?= =?UTF-8?q?eclaration=20in=20getMatchupScore=20Signed-off-by:=20Fuad=20Ali?= =?UTF-8?q?=20=20Co-authored-by:=20Matilde=20?= =?UTF-8?q?Sim=C3=B5es=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/field/pokemon.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index ec99ca43a2f..743c5ca5578 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2505,14 +2505,14 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } atkScore *= 1.25; //give more value for the pokemon's typing const moveset = this.moveset; - let moveAtkScoreLenght = 0; + let moveAtkScoreLength = 0; for (const move of moveset) { if (move.getMove().category === MoveCategory.SPECIAL || move.getMove().category === MoveCategory.PHYSICAL) { atkScore += opponent.getAttackTypeEffectiveness(move.getMove().type, this, false, true, undefined, true); - moveAtkScoreLenght++; + moveAtkScoreLength++; } } - atkScore = atkScore / (moveAtkScoreLenght + 1); //calculate the median for the attack score + atkScore = atkScore / (moveAtkScoreLength + 1); //calculate the median for the attack score /** * Based on this Pokemon's HP ratio compared to that of the opponent. * This ratio is multiplied by 1.5 if this Pokemon outspeeds the opponent;