used getMoveType() instead of move.type

This commit is contained in:
geeil-han 2024-11-12 11:47:32 +01:00
parent f5345c279b
commit 03445dfab4
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5775faa6b3184082df73f6cdb96b253ea7dae3fe
Subproject commit d600913dbf1f8b47dae8dccbd8296df78f1c51b5

View File

@ -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);