From 03445dfab4db52b0dddbe7abf7d4b4dfa8b9c583 Mon Sep 17 00:00:00 2001 From: geeil-han Date: Tue, 12 Nov 2024 11:47:32 +0100 Subject: [PATCH] used getMoveType() instead of move.type --- public/locales | 2 +- src/data/move.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/locales b/public/locales index 5775faa6b31..d600913dbf1 160000 --- a/public/locales +++ b/public/locales @@ -1 +1 @@ -Subproject commit 5775faa6b3184082df73f6cdb96b253ea7dae3fe +Subproject commit d600913dbf1f8b47dae8dccbd8296df78f1c51b5 diff --git a/src/data/move.ts b/src/data/move.ts index 040bbefdf08..d735d693241 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -4997,7 +4997,7 @@ export class FreezeDryAttr extends VariableMoveTypeMultiplierAttr { if (multipleTypes) { const nonWaterType = target.getTypes().filter(type => type !== Type.WATER)[0]; - const effectivenessAgainstTarget = new Utils.NumberHolder(getTypeDamageMultiplier(move.type, nonWaterType)); + const effectivenessAgainstTarget = new Utils.NumberHolder(getTypeDamageMultiplier(user.getMoveType(move), nonWaterType)); applyChallenges(user.scene.gameMode, ChallengeType.TYPE_EFFECTIVENESS, effectivenessAgainstTarget);